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
|
2016-06-14 10:53:22 +00:00
|
|
|
message_generation
|
2016-05-03 22:23:18 +00:00
|
|
|
)
|
|
|
|
find_package(OpenCV)
|
|
|
|
|
2016-06-14 10:53:22 +00:00
|
|
|
add_message_files(
|
|
|
|
FILES
|
|
|
|
BoundingBox.msg
|
|
|
|
)
|
|
|
|
|
2016-06-14 22:51:34 +00:00
|
|
|
generate_messages(
|
|
|
|
DEPENDENCIES
|
|
|
|
std_msgs
|
|
|
|
)
|
2016-05-03 22:23:18 +00:00
|
|
|
catkin_package(CATKIN_DEPENDS
|
|
|
|
roscpp
|
|
|
|
std_msgs
|
|
|
|
image_transport
|
|
|
|
cv_bridge
|
2016-06-14 10:53:22 +00:00
|
|
|
message_runtime
|
2016-05-03 22:23:18 +00:00
|
|
|
)
|
|
|
|
|
2016-06-14 10:53:22 +00:00
|
|
|
|
2016-05-03 22:23:18 +00:00
|
|
|
include_directories (${catkin_INCLUDE_DIRS})
|
|
|
|
|
|
|
|
add_executable (papillon src/papillon.cpp)
|
2016-06-14 15:45:23 +00:00
|
|
|
add_executable (control src/control.cpp)
|
2016-06-14 22:51:34 +00:00
|
|
|
add_dependencies( papillon ${PROJECT_NAME}_generate_messages_cpp )
|
2016-05-03 22:23:18 +00:00
|
|
|
target_link_libraries(papillon ${catkin_LIBRARIES})
|
2016-06-14 23:06:55 +00:00
|
|
|
target_link_libraries(control ${catkin_LIBRARIES})
|
2016-05-03 22:23:18 +00:00
|
|
|
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)
|