forked from DEIS-Tools/MoniTAal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
42 lines (31 loc) · 1.26 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
41
42
cmake_minimum_required(VERSION 3.17)
project(monitaal)
set(CMAKE_CXX_STANDARD 20)
set(EXTERNAL_INSTALL_LOCATION "${CMAKE_BINARY_DIR}/external")
FIND_PACKAGE(Boost 1.40 COMPONENTS program_options REQUIRED )
FIND_PACKAGE(pugixml REQUIRED)
INCLUDE_DIRECTORIES( ${PugiXML_INCLUDE_DIR})
INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIR} )
link_directories( ${PugiXML_LIB_DIR})
file(MAKE_DIRECTORY ${EXTERNAL_INSTALL_LOCATION})
file(MAKE_DIRECTORY ${EXTERNAL_INSTALL_LOCATION}/lib)
file(MAKE_DIRECTORY ${EXTERNAL_INSTALL_LOCATION}/include)
include(ExternalProject)
ExternalProject_add(pardibaal
GIT_REPOSITORY [email protected]:DEIS-Tools/PARDIBAAL.git
GIT_TAG delay
CMAKE_ARGS (
-DBUILD_TESTING=OFF
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}
-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
-DCMAKE_INSTALL_PREFIX=${EXTERNAL_INSTALL_LOCATION} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE})
)
include_directories(${EXTERNAL_INSTALL_LOCATION}/include)
link_directories(${EXTERNAL_INSTALL_LOCATION}/lib)
add_subdirectory(src/monitaal)
target_include_directories(MoniTAal INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/src)
add_subdirectory(src/monitaal-bin)
if(BUILD_TESTING)
enable_testing()
add_subdirectory(test)
endif()