-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
32 lines (27 loc) · 960 Bytes
/
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
cmake_minimum_required(VERSION 2.8.12)
project(crl)
# Debug / Release
if(CMAKE_BUILD_TYPE MATCHES Debug)
message("Compiling in the Debug mode")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0")
else()
message("Compiling in the Release mode")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -march=native")
set(CMAKE_BUILD_TYPE Release)
endif()
set(CMAKE_CXX_STANDARD 17) # force c++17 because of shared_mutex in boost-std-configuration.h of log4cxx
find_program(CCACHE_FOUND ccache)
if(CCACHE_FOUND)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
endif(CCACHE_FOUND)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/crl/cmake")
enable_testing()
add_subdirectory(crl)
if(HAS_CRL)
message("Crl found add gsoa-etsp and gsoa-cetsp")
find_package(X11)
find_package(Log4cxx)
add_subdirectory(gsoa-etsp)
add_subdirectory(gsoa-cetsp)
endif(HAS_CRL)