-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
69 lines (56 loc) · 1.67 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
66
67
68
69
cmake_minimum_required(VERSION 2.8.3)
project(xm_leg_detector)
# look for bfl (Bayesian Filtering Library)
find_package(PkgConfig REQUIRED)
pkg_check_modules(BFL REQUIRED orocos-bfl)
include_directories(${BFL_INCLUDE_DIRS})
link_directories(${BFL_LIBRARY_DIRS})
# Look for Bullet
pkg_check_modules(BULLET bullet)
include_directories(${BULLET_INCLUDE_DIRS})
## Find catkin macros and libraries
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
geometry_msgs
std_srvs
sensor_msgs
laser_geometry
tf
visualization_msgs
people_msgs
people_tracking_filter
image_geometry
dynamic_reconfigure
)
## dynamic reconfigure config
generate_dynamic_reconfigure_options(
cfg/LegDetector.cfg
)
## Specify additional locations of header files
include_directories(
include ${catkin_INCLUDE_DIRS}
)
catkin_package(INCLUDE_DIRS include
CATKIN_DEPENDS people_msgs sensor_msgs std_msgs geometry_msgs visualization_msgs)
## Declare a cpp executable
add_executable(leg_detector
src/laser_processor.cpp
src/leg_detector.cpp
src/calc_leg_features.cpp)
## Add cmake target dependencies of the executable/library
add_dependencies(leg_detector people_msgs_gencpp ${${PROJECT_NAME}_EXPORTED_TARGETS})
## Specify libraries to link a library or executable target against
target_link_libraries(leg_detector
${catkin_LIBRARIES} ${BFL_LIBRARIES} ${BULLET_LIBRARIES}
)
install(TARGETS
leg_detector
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(FILES config/trained_leg_detector.yaml
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/config
)
install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
)