File tree Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ include_directories(
33
33
${PCL_COMMON_INCLUDE_DIRS}
34
34
)
35
35
36
- install (DIRECTORY include /${PROJECT_NAME} /
37
- DESTINATION include /${PROJECT_NAME} /
36
+ install (DIRECTORY include /
37
+ DESTINATION include /${PROJECT_NAME}
38
38
)
39
39
40
40
# Add gtest based cpp test target
@@ -48,6 +48,8 @@ if(BUILD_TESTING)
48
48
target_link_libraries (${PROJECT_NAME} -test ${Boost_LIBRARIES} ${PCL_LIBRARIES} )
49
49
endif ()
50
50
51
- ament_export_include_directories(include )
51
+ # Export old-style CMake variables
52
+ ament_export_include_directories("include/${PROJECT_NAME} " )
53
+
52
54
ament_export_dependencies(${dependencies} )
53
55
ament_package()
Original file line number Diff line number Diff line change @@ -34,17 +34,15 @@ set(dependencies
34
34
PCL
35
35
)
36
36
37
- include_directories (
38
- include
39
- ${PCL_INCLUDE_DIRS}
40
- )
41
-
42
37
## Declare the pcl_ros_tf library
43
38
add_library (pcl_ros_tf src/transforms.cpp)
39
+ target_include_directories (pcl_ros_tf PUBLIC
40
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include >
41
+ $<INSTALL_INTERFACE:include /${PROJECT_NAME} >
42
+ )
44
43
ament_target_dependencies(pcl_ros_tf
45
44
${dependencies}
46
45
)
47
- target_link_libraries (pcl_ros_tf ${PCL_LIBRARIES} )
48
46
49
47
### Nodelets
50
48
#
@@ -165,7 +163,7 @@ endif()
165
163
166
164
install (
167
165
DIRECTORY include /
168
- DESTINATION include
166
+ DESTINATION include / ${PROJECT_NAME}
169
167
)
170
168
171
169
install (
@@ -185,14 +183,18 @@ install(
185
183
RUNTIME DESTINATION bin
186
184
ARCHIVE DESTINATION lib
187
185
LIBRARY DESTINATION lib
188
- INCLUDES DESTINATION include
189
186
)
190
187
191
188
install (DIRECTORY plugins samples
192
189
DESTINATION share/${PROJECT_NAME} )
193
190
194
- ament_export_include_directories(include )
191
+ # Export old-style CMake variables
192
+ ament_export_include_directories("include/${PROJECT_NAME} " )
195
193
ament_export_libraries(pcl_ros_tf)
196
- ament_export_dependencies(${dependencies} )
194
+
195
+ # Export modern CMake targets
197
196
ament_export_targets(export_pcl_ros HAS_LIBRARY_TARGET)
197
+
198
+ ament_export_dependencies(${dependencies} )
199
+
198
200
ament_package()
You can’t perform that action at this time.
0 commit comments