# 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-qc-to-qir-adaptive)
add_executable(${target_name} test_qc_to_qir_adaptive.cpp)

target_link_libraries(
  ${target_name}
  PRIVATE
    MLIRParser
    MLIRSupportMQT
    GTest::gtest_main
    MLIRQCProgramBuilder
    MLIRQIRProgramBuilder
    MLIRQCPrograms
    MLIRQIRPrograms
    MLIRQCToQIRAdaptive
    MLIRMQTTransforms)

mqt_mlir_configure_unittest_target(${target_name})

gtest_discover_tests(
  ${target_name}
  NO_PRETTY_VALUES
  PROPERTIES LABELS mqt-mlir-unittests
  DISCOVERY_TIMEOUT 60)
