-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
35 lines (27 loc) · 935 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
33
34
35
cmake_minimum_required(VERSION 2.8.11)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/")
include(install_dependency)
# set the build type. Good values are debug or release
set(CMAKE_BUILD_TYPE debug)
# setup dependencies
find_package(Boost)
install_dependency("dionysus")
set(DIONYSUS_INCLUDE_DIR "${CMAKE_BINARY_DIR}/dionysus-src/include")
set(PLF_NANOTIMER_DIR "${CMAKE_BINARY_DIR}/plf_nanotimer-src")
enable_testing()
install_dependency("googletest")
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) # fix settings on Windows
# setup the build flags
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O2")
# setup the includes
set(RECONSTRUCTION_INCLUDE_DIR "./include")
include_directories(
${DIONYSUS_INCLUDE_DIR}
${PLF_NANOTIMER_DIR}
${Boost_INCLUDE_DIR}
${RECONSTRUCTION_INCLUDE_DIR}
)
# setup remainder of project
add_subdirectory(test)
add_subdirectory(example)
add_subdirectory(bindings/python)