-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
40 lines (31 loc) · 1.06 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
cmake_minimum_required(VERSION 3.5)
project(DRPLAN)
#set(CMAKE_CXX_COMPILER "clang++")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
#include(cotire)
set(SOURCE_FILES
src/stdafx.cpp
src/TwoTree.cpp
src/RootFinder.cpp
src/Tree.cpp
src/Node.cpp
src/TwoTreeUtils.cpp
src/main.cpp)
# Include Boost Graph Library
find_package(Boost COMPONENTS program_options graph REQUIRED)
include_directories(
${CMAKE_SOURCE_DIR}/include
${Boost_INCLUDE_DIRS})
# Set Splinter library
set(SPLINTER_LIB CACHE FILEPATH "Path to Splinter library")
set(GLPK_LIB CACHE FILEPATH "Path to GLPK library")
add_executable(${PROJECT_NAME} ${SOURCE_FILES})
target_link_libraries(${PROJECT_NAME} PRIVATE
${SPLINTER_LIB}
${GLPK_LIB}
${Boost_LIBRARIES})
target_include_directories(${PROJECT_NAME} PRIVATE ${Boost_INCLUDE_DIRS})
# Cotire for pre-compiled header
#set_target_properties(${PROJECT_NAME} PROPERTIES COTIRE_CXX_PREFIX_HEADER_INIT "include/stdafx.h")
#cotire(${PROJECT_NAME})