-
Notifications
You must be signed in to change notification settings - Fork 36
/
CMakeLists.txt
46 lines (37 loc) · 1.31 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
cmake_minimum_required(VERSION 2.8.3)
project(ros_img_processor)
#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
image_transport
cv_bridge)
## System dependencies are found with CMake's conventions
find_package(OpenCV REQUIRED)
#source files
SET(SRCS
src/ros_img_processor_node.cpp
src/ros_img_processor_main.cpp)
## The catkin_package macro generates cmake config files for your package
catkin_package(
CATKIN_DEPENDS
roscpp
rospy
image_transport
cv_bridge)
## Specify additional locations of header files
include_directories(${OpenCV_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS})
## Declare a cpp executable for pipol_tracker_node
add_executable(ros_img_processor ${SRCS})
#add_dependencies(pipol_tracker_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${PROJECT_NAME}_generate_messages_cpp)
target_link_libraries(ros_img_processor ${OpenCV_LIBS} ${catkin_LIBRARIES})
#install binaries
install(TARGETS ros_img_processor
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
#Share launch and configs
foreach(dir launch config)
install(DIRECTORY ${dir}/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/${dir})
endforeach(dir)