File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ find_package(fastrtps REQUIRED CONFIG)
4545find_package (FastRTPS REQUIRED MODULE)
4646
4747find_package (rmw REQUIRED)
48- include_directories (include )
4948
5049add_library (rmw_fastrtps_shared_cpp
5150 src/custom_publisher_info.cpp
@@ -86,7 +85,10 @@ add_library(rmw_fastrtps_shared_cpp
8685 src/subscription.cpp
8786 src/TypeSupport_impl.cpp
8887)
89-
88+ target_include_directories (rmw_fastrtps_shared_cpp
89+ PUBLIC
90+ "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include>"
91+ "$<INSTALL_INTERFACE:include>" )
9092target_link_libraries (rmw_fastrtps_shared_cpp
9193 fastcdr fastrtps
9294)
@@ -107,6 +109,7 @@ PRIVATE "RMW_FASTRTPS_SHARED_CPP_BUILDING_LIBRARY")
107109# specific order: dependents before dependencies
108110ament_export_include_directories(include )
109111ament_export_libraries(rmw_fastrtps_shared_cpp)
112+ ament_export_targets(rmw_fastrtps_shared_cpp)
110113
111114ament_export_dependencies(rcpputils)
112115ament_export_dependencies(rcutils)
@@ -128,7 +131,7 @@ install(
128131)
129132
130133install (
131- TARGETS rmw_fastrtps_shared_cpp
134+ TARGETS rmw_fastrtps_shared_cpp EXPORT rmw_fastrtps_shared_cpp
132135 ARCHIVE DESTINATION lib
133136 LIBRARY DESTINATION lib
134137 RUNTIME DESTINATION bin
You can’t perform that action at this time.
0 commit comments