forked from VisualComputingInstitute/BiternionNets-ROS
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
101 lines (83 loc) · 2.99 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
cmake_minimum_required(VERSION 2.8.3)
project(biternion)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
cv_bridge
geometry_msgs
image_transport
message_filters
roscpp
std_msgs
message_generation
# Sadly, no optional components support by ROS, so switch between those manually:
# Furthermore, don't forget to use the correct `add_definitions` just below.
# For the STRANDS framework, use the following two:
upper_body_detector
mdl_people_tracker
# For the SPENCER framework, use the following two:
#rwth_upper_body_detector
#rwth_pedestrian_tracking
)
add_definitions(-DSTRANDS_FRAMEWORK)
#add_definitions(-DSPENCER_FRAMEWORK)
#######################################
## Declare ROS messages and services ##
#######################################
## Generate messages in the 'msg' folder
add_message_files(
FILES
HeadOrientations.msg
)
## Generate added messages and services with any dependencies listed here
generate_messages(
DEPENDENCIES
std_msgs
geometry_msgs
)
###################################
## catkin specific configuration ##
###################################
catkin_package(
)
###########
## Build ##
###########
# We know that for STRANDS and SPENCER it's g++4.6 anyways.
# And we can't use CMake's new feature for C++11 yet.
add_definitions(-std=c++0x)
## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(
${catkin_INCLUDE_DIRS}
)
## Declare a cpp executable
add_executable(count_ubd src/count_ubd.cpp)
add_executable(dump_ubd src/dump_ubd.cpp src/mkpath.c src/subtractbg.cpp src/depth.cpp)
add_executable(dump_tracks src/dump_tracks.cpp src/mkpath.c src/subtractbg.cpp src/depth.cpp)
## Add cmake target dependencies of the executable/library
## as an example, message headers may need to be generated before nodes
add_dependencies(count_ubd ${PROJECT_NAME}_generate_messages_cpp ${catkin_EXPORTED_TARGETS})
add_dependencies(dump_ubd ${PROJECT_NAME}_generate_messages_cpp ${catkin_EXPORTED_TARGETS})
add_dependencies(dump_tracks ${PROJECT_NAME}_generate_messages_cpp ${catkin_EXPORTED_TARGETS})
## Specify libraries to link a library or executable target against
target_link_libraries(count_ubd ${catkin_LIBRARIES})
target_link_libraries(dump_ubd ${catkin_LIBRARIES})
target_link_libraries(dump_tracks ${catkin_LIBRARIES})
#############
## Install ##
#############
## Mark executables and/or libraries for installation
install(TARGETS dump_ubd dump_tracks count_ubd
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(DIRECTORY launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
# TODO: What's up with python scripts?
install(DIRECTORY models
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)