# ============================================================================ #
# Copyright (c) 2026 NVIDIA Corporation & Affiliates.                          #
# All rights reserved.                                                         #
#                                                                              #
# This source code and the accompanying materials are made available under     #
# the terms of the Apache License 2.0 which accompanies this distribution.     #
# ============================================================================ #

add_cudaq_dialect_library(QECDialect
  QECDialect.cpp
  QECOps.cpp

  DEPENDS
  QECDialectIncGen
  QECOpsIncGen
  QECTypesIncGen

  LINK_LIBS
  CCDialect
  QuakeDialect
  MLIRIR
)

register_cudaq_mlir_lib(QECDialect)
