-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
40 lines (32 loc) · 1.43 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
39
40
# DACE Examples
#
# This file shows how to use the DACE in a cmake project
# Simply import the DACE cmake package. It automatically provides the correct
# locations for headers and libraries.
# If the DACE is installed in a non-default location, tell cmake where to look:
# set(dace_DIR "/my/custom/root/usr/local/lib/cmake/dace")
# It exposes two targets:
# dace::dace (the dynamic DACE library)
# dace::dace_s (the static DACE library)
# Make sure to link your executable with one of those and include the correct
# header (<dace/dace.h> or <dace/dace_s.h>) in the code.
#
# On Windows only, the dace.dll dynamics library is typically expected to be
# located in the same directory as the executable using it. You can use a
# command such as the file(COPY ...) below to automatically copy the dace.dll
# from the DACE package next to your executables.
cmake_minimum_required (VERSION 2.8.4)
project(Examples2 CXX)
find_package(dace 2.0.0 REQUIRED)
if(WIN32)
get_target_property(DACEDLL dace::dace LOCATION)
file(COPY "${DACEDLL}" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
endif(WIN32)
add_executable(polyProp polyProp.cpp)
target_link_libraries(polyProp PUBLIC dace::dace)
add_executable(validatePoly validatePoly.cpp)
target_link_libraries(validatePoly PUBLIC dace::dace)
add_executable(CGTProp CGTProp.cpp)
target_link_libraries(CGTProp PUBLIC dace::dace)
add_executable(findTca findTca.cpp)
target_link_libraries(findTca PUBLIC dace::dace)