# 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

# macro to add a executable with the given libraries
macro(ADD_SIM_EXECUTABLE appname)
  add_executable(mqt-ddsim-${appname} ${appname}.cpp)
  target_link_libraries(mqt-ddsim-${appname} PRIVATE MQT::DDSim MQT::CoreQASM ${ARGN})
endmacro()

add_sim_executable(simple cxxopts::cxxopts)
target_link_libraries(mqt-ddsim-simple PRIVATE MQT::CoreAlgorithms)

if(Threads_FOUND)
  add_sim_executable(noise_aware cxxopts::cxxopts)
  target_link_libraries(mqt-ddsim-noise_aware PRIVATE Threads::Threads)
endif()
