Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treat external dependencies as system ones #388

Merged
merged 1 commit into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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