mirror of
https://github.com/westonrobot/scout_ros.git
synced 2026-01-12 19:25:01 +08:00
48 lines
907 B
CMake
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}
|
|
)
|