-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
39 lines (32 loc) · 1.19 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
# Declare the version of the CMake API for forward-compatibility
cmake_minimum_required(VERSION 2.8)
# Declare the name of the CMake Project
project(colorblob_tracker)
# Find Catkin
find_package(catkin REQUIRED COMPONENTS
roscpp
sensor_msgs
cv_bridge
image_transport
)
find_package(OpenCV 2.4 REQUIRED COMPONENTS highgui imgproc )
# Declare this project as a catkin package
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES hello_world
# CATKIN_DEPENDS roscpp
)
# Add the headers from roscpp
include_directories(include ${catkin_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
)
# Define a library target called hello_world
#add_library(hello_world src/hello_world.cpp)
#target_link_libraries(hello_world ${roscpp_LIBRARIES})
add_executable(color_blob_tracker src/color_blob_tracker.cpp
src/color_blob_tracker_demo.cpp
)
target_link_libraries(color_blob_tracker ${catkin_LIBRARIES}
${OpenCV_LIBRARIES}
)
add_dependencies(color_blob_tracker colorblob_tracker_generate_messages_cpp)