Files
scout_ros/scout_gazebo_sim/CMakeLists.txt
Ruixiang Du dbf04d03d8 saved work
2020-03-26 19:06:34 +08:00

48 lines
907 B
CMake

cmake_minimum_required(VERSION 2.8.3)
project(scout_gazebo_sim)
add_compile_options(-std=c++11)
find_package(catkin REQUIRED COMPONENTS
roslaunch
roslint
roscpp
std_msgs
sensor_msgs
geometry_msgs
tf2
tf2_ros
)
catkin_package(
INCLUDE_DIRS include
# LIBRARIES
CATKIN_DEPENDS roscpp sensor_msgs
# DEPENDS Boost
)
###########
## Build ##
###########
include_directories(
include
${catkin_INCLUDE_DIRS}
)
add_library(scout_gazebo STATIC src/scout_skid_steer.cpp)
target_link_libraries(scout_gazebo ${catkin_LIBRARIES})
add_executable(scout_skid_steer_controller src/scout_skid_steer_controller.cpp)
target_link_libraries(scout_skid_steer_controller scout_gazebo ${catkin_LIBRARIES})
#############
## Install ##
#############
roslaunch_add_file_check(launch)
install(
DIRECTORY launch worlds
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)