-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
74 lines (59 loc) · 2.37 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
cmake_minimum_required(VERSION 2.8.3)
project(mb_pose_estimation)
find_package(catkin REQUIRED COMPONENTS
actionlib
actionlib_msgs
lima
message_generation
roscpp
)
find_package(VISP REQUIRED)
find_package(Boost REQUIRED thread program_options system filesystem)
add_action_files(FILES MBTrack.action)
add_service_files(FILES PoseEstimation.srv)
generate_messages(DEPENDENCIES std_msgs geometry_msgs actionlib_msgs)
catkin_package(
INCLUDE_DIRS
include
LIBRARIES
mb_pose_estimation
CATKIN_DEPENDS
actionlib
actionlib_msgs
lima
message_runtime
roscpp
DEPENDS VISP
)
add_definitions(${VISP_DEFINITIONS})
link_directories(${VISP_LIBRARY_DIRS} ${Boost_LIBRARY_DIRS})
include_directories(include ${catkin_INCLUDE_DIRS} ${VISP_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS})
add_library(${PROJECT_NAME} src/mb_pose_estimation.cpp src/utils.cpp)
add_executable(pose_estimation_service src/pose_estimation_service.cpp)
target_link_libraries(pose_estimation_service ${PROJECT_NAME} ${catkin_LIBRARIES} ${VISP_LIBRARIES} ${Boost_LIBRARIES})
add_executable(pose_estimation_client src/pose_estimation_client.cpp)
target_link_libraries(pose_estimation_client ${PROJECT_NAME} ${catkin_LIBRARIES} ${VISP_LIBRARIES} ${Boost_LIBRARIES})
add_executable(training_node src/training_node.cpp)
target_link_libraries(training_node ${PROJECT_NAME} ${catkin_LIBRARIES} ${VISP_LIBRARIES} ${Boost_LIBRARIES})
add_executable(track_action_server src/track_action_server.cpp)
target_link_libraries(track_action_server ${PROJECT_NAME} ${catkin_LIBRARIES} ${VISP_LIBRARIES} ${Boost_LIBRARIES})
add_executable(track_action_client src/track_action_client.cpp)
target_link_libraries(track_action_client ${PROJECT_NAME} ${catkin_LIBRARIES} ${VISP_LIBRARIES} ${Boost_LIBRARIES})
add_executable(feature_matching src/feature_matching.cpp)
target_link_libraries(feature_matching ${PROJECT_NAME} ${catkin_LIBRARIES} ${VISP_LIBRARIES} ${Boost_LIBRARIES})
install(
TARGETS
${PROJECT_NAME}
pose_estimation_service
pose_estimation_client
track_action_server
track_action_client
feature_matching
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(DIRECTORY include/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
FILES_MATCHING PATTERN "*.h" PATTERN "*.hpp"
)