-
Notifications
You must be signed in to change notification settings - Fork 13
/
CMakeLists.txt
64 lines (48 loc) · 1.61 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
cmake_minimum_required(VERSION 2.8.3)
project(generic_obstacle_detection)
find_package(catkin REQUIRED COMPONENTS
csapex
csapex_math
csapex_point_cloud
csapex_transform
csapex_ros
tf
)
find_package(PCL 1.2 REQUIRED COMPONENTS common filters segmentation)
find_package(Eigen3 REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
add_definitions(-DQT_NO_KEYWORDS -march=native -O3)
catkin_package(
INCLUDE_DIRS include
DEPENDS Eigen3
)
###########
## Build ##
###########
include_directories(include
${catkin_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
)
file(GLOB_RECURSE HEADERS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} FOLLOW_SYMLINKS include/*.h*)
add_library(${PROJECT_NAME}_apex_node
${HEADERS}
src/obstacle_detection/low_pass_filter.cpp
src/obstacle_detection/heat_calculator.cpp
src/obstacle_detection/obstacle_detector.cpp
src/obstacle_detection/detector.cpp
src/obstacle_detection/histogram.cpp
src/obstacle_detection/point_histogram.hpp
)
target_link_libraries(${PROJECT_NAME}_apex_node
${catkin_LIBRARIES} ${PCL_COMMON_LIBRARIES} ${PCL_FILTERS_LIBRARIES} ${PCL_SEGMENTATION_LIBRARIES}
)
install(FILES plugins.xml
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
install(TARGETS ${PROJECT_NAME}_apex_node
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION})
install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION})