Skip to content

Commit

Permalink
Treat external dependencies as system ones
Browse files Browse the repository at this point in the history
  • Loading branch information
garyservin committed Jan 31, 2025
1 parent 98cf1f3 commit 8e26584
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
18 changes: 18 additions & 0 deletions fuse_optimizers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ add_dependencies(${PROJECT_NAME}
target_include_directories(${PROJECT_NAME}
PUBLIC
include
)
target_include_directories(${PROJECT_NAME}
SYSTEM PUBLIC
${catkin_INCLUDE_DIRS}
)
target_link_libraries(${PROJECT_NAME}
Expand All @@ -65,6 +68,9 @@ add_dependencies(batch_optimizer_node
target_include_directories(batch_optimizer_node
PRIVATE
include
)
target_include_directories(batch_optimizer_node
SYSTEM PRIVATE
${catkin_INCLUDE_DIRS}
)
target_link_libraries(batch_optimizer_node
Expand All @@ -87,6 +93,9 @@ add_dependencies(fixed_lag_smoother_node
target_include_directories(fixed_lag_smoother_node
PRIVATE
include
)
target_include_directories(fixed_lag_smoother_node
SYSTEM PRIVATE
${catkin_INCLUDE_DIRS}
)
target_link_libraries(fixed_lag_smoother_node
Expand Down Expand Up @@ -146,6 +155,9 @@ if(CATKIN_ENABLE_TESTING)
target_include_directories(test_variable_stamp_index
PRIVATE
include
)
target_include_directories(test_variable_stamp_index
SYSTEM PRIVATE
${catkin_INCLUDE_DIRS}
)
target_link_libraries(test_variable_stamp_index
Expand All @@ -169,6 +181,9 @@ if(CATKIN_ENABLE_TESTING)
target_include_directories(test_optimizer
PRIVATE
include
)
target_include_directories(test_optimizer
SYSTEM PRIVATE
${catkin_INCLUDE_DIRS}
${CMAKE_CURRENT_SOURCE_DIR}
)
Expand All @@ -195,6 +210,9 @@ if(CATKIN_ENABLE_TESTING)
target_include_directories(test_fixed_lag_ignition
PRIVATE
include
)
target_include_directories(test_fixed_lag_ignition
SYSTEM PRIVATE
${catkin_INCLUDE_DIRS}
${fuse_models_INCLUDE_DIRS}
${geometry_msgs_INCLUDE_DIRS}
Expand Down
13 changes: 13 additions & 0 deletions fuse_publishers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ add_dependencies(${PROJECT_NAME}
target_include_directories(${PROJECT_NAME}
PUBLIC
include
)

target_include_directories(${PROJECT_NAME}
SYSTEM PUBLIC
${catkin_INCLUDE_DIRS}
)
target_link_libraries(${PROJECT_NAME}
Expand Down Expand Up @@ -120,6 +124,9 @@ if(CATKIN_ENABLE_TESTING)
target_include_directories(test_path_2d_publisher
PRIVATE
include
)
target_include_directories(test_path_2d_publisher
SYSTEM PRIVATE
${catkin_INCLUDE_DIRS}
)
target_link_libraries(test_path_2d_publisher
Expand All @@ -143,6 +150,9 @@ if(CATKIN_ENABLE_TESTING)
target_include_directories(test_pose_2d_publisher
PRIVATE
include
)
target_include_directories(test_pose_2d_publisher
SYSTEM PRIVATE
${catkin_INCLUDE_DIRS}
)
target_link_libraries(test_pose_2d_publisher
Expand All @@ -165,6 +175,9 @@ if(CATKIN_ENABLE_TESTING)
target_include_directories(test_stamped_variable_synchronizer
PRIVATE
include
)
target_include_directories(test_stamped_variable_synchronizer
SYSTEM PRIVATE
${catkin_INCLUDE_DIRS}
)
target_link_libraries(test_stamped_variable_synchronizer
Expand Down
6 changes: 6 additions & 0 deletions fuse_tutorials/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ add_dependencies(${PROJECT_NAME}
target_include_directories(${PROJECT_NAME}
PUBLIC
include
)
target_include_directories(${PROJECT_NAME}
SYSTEM PUBLIC
${catkin_INCLUDE_DIRS}
)
target_link_libraries(${PROJECT_NAME}
Expand All @@ -64,6 +67,9 @@ add_dependencies(range_sensor_simulator
target_include_directories(range_sensor_simulator
PUBLIC
include
)
target_include_directories(range_sensor_simulator
SYSTEM PUBLIC
${catkin_INCLUDE_DIRS}
)
target_link_libraries(range_sensor_simulator
Expand Down

0 comments on commit 8e26584

Please sign in to comment.