-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
65 lines (45 loc) · 2.44 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
cmake_minimum_required(VERSION 3.10)
project(libbuhlman VERSION 0.0.1 DESCRIPTION "an implementation of the Buhlmann ZHL algorithms")
set(CMAKE_CXX_STANDARD 11)
#############################################################################
# DSO CONFIG
#############################################################################
include_directories(include)
include_directories(include/ec)
include_directories(include/model)
include_directories(include/planning)
include_directories(include/schedule)
include_directories(include/units)
set(LIB_SRC_DIR ${PROJECT_SOURCE_DIR}/src)
set(APP_SRC_DIR ${PROJECT_SOURCE_DIR}/app)
file(GLOB_RECURSE LIB_SOURCES
${LIB_SRC_DIR}/*.cpp
${LIB_SRC_DIR}/model/*.cpp
${LIB_SRC_DIR}/planning/*.cpp)
file(GLOB_RECURSE LIB_HEADERS include/*.h include/*.hpp)
add_library(libbuhlmann SHARED ${LIB_SOURCES} ${LIB_HEADERS})
set_target_properties(libbuhlmann PROPERTIES VERSION ${PROJECT_VERSION})
set_target_properties(libbuhlmann PROPERTIES SOVERSION 0)
set_target_properties(libbuhlmann PROPERTIES PUBLIC_HEADER include/mylib.h)
##################################################################################################
# TEST PLANNING
##################################################################################################
target_include_directories(libbuhlmann PRIVATE ${HDRS})
file(GLOB_RECURSE TEST_PLANNING_HEADERS include/*.h include/*.hpp)
add_executable(planning_testing app/main_test_planning.cpp)
target_link_libraries(planning_testing libbuhlmann)
##################################################################################################
# TEST BUHLMANN
##################################################################################################
target_include_directories(libbuhlmann PRIVATE ${HDRS})
file(GLOB_RECURSE TEST_BUHLMANN_HEADERS include/*.h include/*.hpp)
add_executable(buhlmann_testing app/main_test_buhlmann.cpp)
target_link_libraries(buhlmann_testing libbuhlmann)
##################################################################################################
# TEST VISUALIZATION
##################################################################################################
file(GLOB_RECURSE DATA_VISUALIZATION_SOURCES app/compartment_data_viz.cpp app/dataGrid.cpp)
file(GLOB_RECURSE DATA_VISUALIZATION_HEADERS include/*.h include/*.hpp)
add_executable(data_viz ${DATA_VISUALIZATION_SOURCES})
target_link_libraries(data_viz GL glut)
include(GNUInstallDirs)