-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
92 lines (74 loc) · 1.6 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
cmake_minimum_required(VERSION 3.0)
project(visp_blobs_tracker)
find_package(catkin REQUIRED COMPONENTS
geometry_msgs
message_filters
resource_retriever
roscpp
sensor_msgs
std_msgs
cv_bridge
visp_bridge
)
# ViSP cannot be found by Catkin.
# see https://github.com/ros/catkin/issues/606
find_package(VISP)
find_package(Boost REQUIRED
COMPONENTS filesystem system signals regex date_time program_options thread)
include_directories(
${Boost_INCLUDE_DIRS}
${VISP_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS}
)
#link_directories(
# ${BULLET_LIBRARY_DIRS}
# ${Boost_LIBRARY_DIRS}
# ${VISP_LIBRARY_DIRS}
# ${catkin_LIBRARY_DIRS}
# )
catkin_package(
LIBRARIES
vpBlobsTargetTracker
vpColorDetection
CATKIN_DEPENDS
geometry_msgs
message_filters
roscpp
sensor_msgs
std_msgs
DEPENDS
VISP
)
# Make sure Boost.Filesystem v3 is used.
add_definitions(-DBOOST_FILESYSTEM_VERSION=3)
# Add ViSP definitions.
add_definitions(${VISP_DEFINITIONS})
# Declare a cpp library
add_library(vpBlobsTargetTracker
src/vpBlobsTargetTracker.cpp
src/vpBlobsTargetTracker.h
)
target_link_libraries(vpBlobsTargetTracker
${VISP_LIBRARIES}
)
# Declare a cpp library
add_library(vpColorDetection
src/vpColorDetection.cpp
src/vpColorDetection.h
)
target_link_libraries(vpColorDetection
${VISP_LIBRARIES}
)
add_executable(visp_blobs_tracker
src/main.cpp
src/names.cpp
src/names.h
src/node.cpp
src/node.h
)
target_link_libraries(visp_blobs_tracker
${resource_retriever_LIBRARIES}
${catkin_LIBRARIES}
${Boost_LIBRARIES}
vpBlobsTargetTracker
vpColorDetection)