# CMakeLists.txt # # Copyright (c) 2015 Wunderkammer Laboratory # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. cmake_minimum_required(VERSION 2.8.3) project(ackermann_vehicle_gazebo) ## Add support for C++11, supported in ROS Kinetic and newer add_definitions(-std=c++11) find_package(catkin REQUIRED roscpp rospy std_msgs lidar_segmentation colormap pcl_ros velodyne_pointcloud tf_conversions) find_package(cmake_modules) find_package(Eigen REQUIRED) catkin_package( # INCLUDE_DIRS include # LIBRARIES free_space_detection CATKIN_DEPENDS roscpp rospy std_msgs message_runtime colormap pcl_ros velodyne_pointcloud DEPENDS Eigen ) catkin_install_python(PROGRAMS scripts/ackermann_controller DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}) install(DIRECTORY config launch DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}) ########### ## Build ## ########### ## Specify additional locations of header files ## Your package locations should be listed before other locations include_directories( ${catkin_INCLUDE_DIRS} ${Eigen_INCLUDE_DIRS} include ) ## Declare a C++ executable ## With catkin_make all packages are built within a single CMake context ## The recommended prefix ensures that target names across packages don't collide add_executable(${PROJECT_NAME}_node src/ackermann_vehicle_gazebo.cpp) add_executable(tf_generator3 src/tf_generator3.cpp) add_dependencies(tf_generator3 trajectory_planner_generate_messages_cpp) ## Specify libraries to link a library or executable target against target_link_libraries(${PROJECT_NAME}_node ${catkin_LIBRARIES} ${Eigen_LIBRARIES} ) target_link_libraries(tf_generator3 ${catkin_LIBRARIES})