# Copyright (c) 2023 - 2026 Chair for Design Automation, TUM
# Copyright (c) 2025 - 2026 Munich Quantum Software Company GmbH
# All rights reserved.
#
# SPDX-License-Identifier: MIT
#
# Licensed under the MIT License

set(target_name mqt-core-mlir-unittest-openqasm-target)
add_executable(${target_name} test_openqasm_emitter.cpp test_openqasm_parser.cpp
                              test_openqasm_semantics.cpp)
target_link_libraries(
  ${target_name}
  PRIVATE MLIROpenQASMFrontend
          MLIRQCOpenQASMTranslation
          MLIRQASMPrograms
          MLIRCBitDialect
          MLIRQCDialect
          MLIRSupportMQT
          GTest::gtest_main)
mqt_mlir_configure_unittest_target(${target_name})
gtest_discover_tests(${target_name} PROPERTIES LABELS mqt-mlir-unittests DISCOVERY_TIMEOUT 60)
