ppovb5fc7/gazebo/examples/plugins/custom_messages/CMakeLists.txt

16 lines
415 B
CMake

cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
find_package(gazebo REQUIRED)
include_directories(
${GAZEBO_INCLUDE_DIRS}
${CMAKE_CURRENT_BINARY_DIR}/msgs
)
link_directories(${GAZEBO_LIBRARY_DIRS})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GAZEBO_CXX_FLAGS}")
add_subdirectory(msgs)
add_library(custom_messages SHARED custom_messages.cc)
target_link_libraries(custom_messages my_msgs ${GAZEBO_libraries})