2016-05-03 22:23:18 +00:00
|
|
|
cmake_minimum_required(VERSION 2.8.3)
|
|
|
|
project(papillon)
|
|
|
|
|
|
|
|
find_package(catkin REQUIRED COMPONENTS
|
|
|
|
roscpp
|
|
|
|
std_msgs
|
|
|
|
image_transport
|
|
|
|
cv_bridge
|
|
|
|
)
|
|
|
|
find_package(OpenCV)
|
|
|
|
|
|
|
|
catkin_package(CATKIN_DEPENDS
|
|
|
|
roscpp
|
|
|
|
std_msgs
|
|
|
|
image_transport
|
|
|
|
cv_bridge
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories (${catkin_INCLUDE_DIRS})
|
|
|
|
|
|
|
|
add_executable (papillon src/papillon.cpp)
|
|
|
|
target_link_libraries(papillon ${catkin_LIBRARIES})
|
|
|
|
set_property (TARGET papillon APPEND PROPERTY INCLUDE_DIRECTORIES ${OpenCV_INCLUDE_DIRS})
|
|
|
|
set_property (TARGET papillon APPEND PROPERTY INCLUDE_DIRECTORIES ${catkin_INCLUDE_DIRS})
|
|
|
|
set_property (TARGET papillon APPEND PROPERTY LINK_LIBRARIES ${OpenCV_LIBRARIES})
|
2016-06-01 23:20:29 +00:00
|
|
|
set( CMAKE_EXPORT_COMPILE_COMMANDS 1 )
|
2016-05-03 22:23:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
install(TARGETS papillon DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
|
|
|
|
|
|
|
|
add_definitions(-Wall -std=c++11)
|