papillon/CMakeLists.txt
2016-06-16 02:20:49 +02:00

47 lines
1.2 KiB
CMake

cmake_minimum_required(VERSION 2.8.3)
project(papillon)
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
image_transport
cv_bridge
message_generation
)
find_package(OpenCV)
find_package( PkgConfig REQUIRED )
pkg_check_modules ( ncurses++ REQUIRED ncurses++ )
add_message_files(
FILES
BoundingBox.msg
)
generate_messages(
DEPENDENCIES
std_msgs
)
catkin_package(CATKIN_DEPENDS
roscpp
std_msgs
image_transport
cv_bridge
message_runtime
)
include_directories (${catkin_INCLUDE_DIRS})
add_executable (papillon src/papillon.cpp)
add_executable (control src/control.cpp)
add_dependencies( papillon ${PROJECT_NAME}_generate_messages_cpp )
target_link_libraries(papillon ${catkin_LIBRARIES})
target_link_libraries(control ${catkin_LIBRARIES} ncurses)
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})
install(TARGETS papillon DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
add_definitions(-Wall -std=c++11)