Files
scout_ros/scout_base/CMakeLists.txt

59 lines
1.3 KiB
CMake

cmake_minimum_required(VERSION 2.8.3)
project(scout_base)
## Compile as C++11, supported in ROS Kinetic and newer
add_compile_options(-std=c++14)
find_package(catkin REQUIRED COMPONENTS
roslaunch
roscpp
sensor_msgs
std_msgs
geometry_msgs
tf2
tf2_ros
ugv_sdk
scout_msgs
)
# find_package(Boost REQUIRED COMPONENTS chrono)
###################################
## catkin specific configuration ##
###################################
catkin_package(
INCLUDE_DIRS include
LIBRARIES scout_messenger
CATKIN_DEPENDS ugv_sdk scout_msgs
# DEPENDS Boost
)
###########
## Build ##
###########
## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(
include
${catkin_INCLUDE_DIRS})
add_executable(scout_base_node src/scout_base_node.cpp)
target_link_libraries(scout_base_node ${catkin_LIBRARIES})
#############
## Install ##
#############
install(TARGETS scout_base_node
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION})
install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION})
install(DIRECTORY launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})