forked from beta-robots/pipol_tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
119 lines (102 loc) · 3.57 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
cmake_minimum_required(VERSION 2.8.3)
project(pipol_tracker)
#set C++11 support
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
## Find catkin macros and libraries
find_package( catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
geometry_msgs
nav_msgs
rosgraph_msgs
image_transport
cv_bridge
message_generation
dynamic_reconfigure
rosbag
interactive_markers
pal_detection_msgs
)
## System dependencies are found with CMake's conventions
find_package(OpenCV REQUIRED)
find_package(Eigen3 REQUIRED)
#SRCS files. Pipol tracker library
SET(SRCS_PT_LIB
src/pipol_tracker_lib/personParticle.cpp
src/pipol_tracker_lib/personParticleFilter.cpp
src/pipol_tracker_lib/personTarget.cpp
src/pipol_tracker_lib/peopleTracker.cpp
src/pipol_tracker_lib/geometry/point.cpp
src/pipol_tracker_lib/geometry/line.cpp
src/pipol_tracker_lib/geometry/point3d.cpp
src/pipol_tracker_lib/geometry/point3dCov.cpp
src/pipol_tracker_lib/observations/timeStamp.cpp
src/pipol_tracker_lib/observations/basicObservation.cpp
src/pipol_tracker_lib/observations/odometryObservation.cpp
src/pipol_tracker_lib/observations/point3dObservation.cpp
src/pipol_tracker_lib/observations/bodyObservation.cpp
src/pipol_tracker_lib/observations/faceObservation.cpp
src/pipol_tracker_lib/random/simpleRnd.cpp
src/pipol_tracker_lib/association_node.cpp
src/pipol_tracker_lib/association_tree.cpp
src/pipol_tracker_lib/association_nnls.cpp
src/pipol_tracker_lib/association_solver.cpp
)
#SRCS files. ROS node
SET(SRCS_ROS_NODE
src/pipol_tracker_node.cpp
src/pipol_tracker_main.cpp
)
## Add messages to be generated
add_message_files(
FILES
person.msg
personArray.msg
)
## Generate added messages and services
generate_messages(
DEPENDENCIES
std_msgs
geometry_msgs
pal_detection_msgs
)
#dynamic reconfigure cfg file
generate_dynamic_reconfigure_options(cfg/pipol_tracker_config.cfg)
## The catkin_package macro generates cmake config files for your package
catkin_package (
CATKIN_DEPENDS
roscpp
rospy
std_msgs
geometry_msgs
nav_msgs
rosgraph_msgs
image_transport
cv_bridge
message_runtime
dynamic_reconfigure
rosbag
interactive_markers
pal_detection_msgs
)
## Specify additional locations of header files
include_directories(src/pipol_tracker_lib/ ${OpenCV_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS})
## Declare a cpp executable for pipol_tracker_node
add_executable(pipol_tracker_node ${SRCS_ROS_NODE} ${SRCS_PT_LIB})
add_dependencies(pipol_tracker_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${PROJECT_NAME}_generate_messages_cpp)
target_link_libraries(pipol_tracker_node ${OpenCV_LIBS} ${catkin_LIBRARIES})
## Declare a cpp executable for gt_annotation_node
add_executable(gt_annotation_node src/gt_annotation_main.cpp)
target_link_libraries(gt_annotation_node ${catkin_LIBRARIES})
## Declare a cpp executable for gt_annotation_node
add_executable(gt_annotation_imarkers src/gt_annotation_imarkers.cpp)
target_link_libraries(gt_annotation_imarkers ${catkin_LIBRARIES})
install(TARGETS pipol_tracker_node
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
foreach(dir launch config)
install(DIRECTORY ${dir}/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/${dir})
endforeach(dir)
#testing
ADD_SUBDIRECTORY(src/pipol_tracker_lib/examples)