Skip to content

Commit

Permalink
add build ros argument for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
henrygerardmoore committed Nov 5, 2024
1 parent 7463cba commit 41436f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion data_tamer_cpp/examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ add_executable(mcap_reader mcap_reader.cpp)
target_include_directories(mcap_reader
PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>)

if ( ament_cmake_FOUND )
# optionally build for ROS 2
option(DATA_TAMER_BUILD_ROS "Build for ROS 2" ON)
if ( DATA_TAMER_BUILD_ROS AND ament_cmake_FOUND )
ament_target_dependencies(mcap_reader mcap_vendor)

CompileExample(ros2_publisher)
Expand Down

0 comments on commit 41436f4

Please sign in to comment.