mirror of
https://github.com/ROBOTIS-GIT/turtlebot3_simulations.git
synced 2025-09-15 13:08:35 +08:00
73 lines
2.5 KiB
CMake
73 lines
2.5 KiB
CMake
################################################################################
|
|
# CMake
|
|
################################################################################
|
|
cmake_minimum_required(VERSION 2.8.3)
|
|
project(turtlebot3_fake)
|
|
|
|
################################################################################
|
|
# Packages
|
|
################################################################################
|
|
find_package(catkin REQUIRED COMPONENTS
|
|
geometry_msgs
|
|
nav_msgs
|
|
roscpp
|
|
sensor_msgs
|
|
std_msgs
|
|
tf
|
|
turtlebot3_msgs
|
|
)
|
|
|
|
################################################################################
|
|
# Declare ROS messages, services and actions
|
|
################################################################################
|
|
|
|
################################################################################
|
|
# Declare ROS dynamic reconfigure parameters
|
|
################################################################################
|
|
|
|
################################################################################
|
|
# Catkin specific configuration
|
|
################################################################################
|
|
catkin_package(
|
|
INCLUDE_DIRS include
|
|
LIBRARIES turtlebot3_fake_node
|
|
CATKIN_DEPENDS geometry_msgs nav_msgs roscpp sensor_msgs std_msgs tf turtlebot3_msgs
|
|
)
|
|
|
|
################################################################################
|
|
# Build
|
|
################################################################################
|
|
include_directories(
|
|
include
|
|
${catkin_INCLUDE_DIRS}
|
|
)
|
|
|
|
add_executable(turtlebot3_fake_node src/turtlebot3_fake.cpp)
|
|
target_link_libraries(turtlebot3_fake_node ${catkin_LIBRARIES})
|
|
add_dependencies(turtlebot3_fake_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
|
|
|
|
################################################################################
|
|
# Install
|
|
################################################################################
|
|
install(TARGETS turtlebot3_fake_node
|
|
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
|
|
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
|
|
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
|
|
)
|
|
|
|
install(DIRECTORY include/${PROJECT_NAME}/
|
|
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
|
|
)
|
|
|
|
install(DIRECTORY launch
|
|
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
|
|
)
|
|
|
|
install(DIRECTORY rviz
|
|
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
|
|
)
|
|
|
|
################################################################################
|
|
# Test
|
|
################################################################################
|