Skip to content
Open
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
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
.vs/
CMakeSettings.json
CMakeSettings.json
/build
/install
/log
10 changes: 9 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ add_compile_options(-Wall -Wextra -Wpedantic)

# find dependencies
find_package(ament_cmake REQUIRED)
find_package(pcl_conversions REQUIRED)
find_package(PCL REQUIRED)

get_filename_component(MODELS_DIRECTORY
"${CMAKE_CURRENT_SOURCE_DIR}/models"
Expand All @@ -27,10 +29,16 @@ target_include_directories(${PROJECT_NAME}
$<INSTALL_INTERFACE:include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
)
ament_target_dependencies(${PROJECT_NAME} PUBLIC
pcl_conversions
)
install(
DIRECTORY include/
DESTINATION include
)

target_link_libraries(${PROJECT_NAME} PUBLIC ${PCL_LIBRARIES})
ament_export_dependencies(
pcl_conversions
)
ament_export_targets(${PROJECT_NAME}Targets HAS_LIBRARY_TARGET)
ament_package()
Loading