-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
45 lines (32 loc) · 1.25 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
cmake_minimum_required(VERSION 2.8.3)
project(octomap_compare)
find_package(catkin_simple 0.1.0 REQUIRED COMPONENTS
message_generation
roscpp)
find_package(OpenCV 2 REQUIRED)
catkin_simple(ALL_DEPS_REQUIRED)
add_definitions(-std=c++11)
cs_add_library(${PROJECT_NAME}
src/octomap_compare.cc
src/octomap_container.cc
src/random_forest_classifier.cc
src/feature_extractor.cc
src/file_writer.cc)
target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS})
find_package(Boost REQUIRED COMPONENTS python)
find_package(PythonLibs REQUIRED)
cs_add_library(hdbscan src/hdbscan.cc)
include_directories(include ${Boost_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS})
target_link_libraries(hdbscan ${Boost_LIBRARIES} ${PYTHON_LIBRARIES})
cs_add_executable(octomap_compare_online_node src/octomap_compare_online_node.cc)
target_link_libraries(octomap_compare_online_node ${PROJECT_NAME} hdbscan)
cs_add_executable(train_node src/train_node.cc)
target_link_libraries(train_node ${PROJECT_NAME} hdbscan)
#add_doxygen(NOT_AUTOMATIC)
cs_install()
cs_export()
#############
# QTCREATOR #
#############
FILE(GLOB_RECURSE LibFiles "include/*")
add_custom_target(headers SOURCES ${LibFiles})