forked from cda-tum/mqt-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
38 lines (37 loc) · 1.2 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
if(NOT TARGET ${MQT_CORE_TARGET_NAME}-dd)
file(GLOB_RECURSE DD_HEADERS ${MQT_CORE_INCLUDE_BUILD_DIR}/dd/*.hpp)
# add DD Package library
add_library(
${MQT_CORE_TARGET_NAME}-dd
${DD_HEADERS}
Benchmark.cpp
CachedEdge.cpp
Complex.cpp
ComplexNumbers.cpp
ComplexValue.cpp
Edge.cpp
FunctionalityConstruction.cpp
MemoryManager.cpp
Node.cpp
NoiseFunctionality.cpp
Operations.cpp
RealNumber.cpp
RealNumberUniqueTable.cpp
Simulation.cpp
Verification.cpp
statistics/MemoryManagerStatistics.cpp
statistics/Statistics.cpp
statistics/TableStatistics.cpp
statistics/UniqueTableStatistics.cpp)
target_link_libraries(${MQT_CORE_TARGET_NAME}-dd PUBLIC MQT::Core nlohmann_json::nlohmann_json)
target_link_libraries(${MQT_CORE_TARGET_NAME}-dd PRIVATE MQT::ProjectOptions MQT::ProjectWarnings)
add_library(MQT::CoreDD ALIAS ${MQT_CORE_TARGET_NAME}-dd)
set_target_properties(
mqt-core-dd
PROPERTIES VERSION ${PROJECT_VERSION}
SOVERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
EXPORT_NAME CoreDD)
set(MQT_CORE_TARGETS
${MQT_CORE_TARGETS} ${MQT_CORE_TARGET_NAME}-dd
PARENT_SCOPE)
endif()