Skip to content

Commit

Permalink
Merge pull request #58 from lmontano93/master
Browse files Browse the repository at this point in the history
fix export library target for ROS2
  • Loading branch information
koide3 authored Dec 27, 2022
2 parents cd7ef3d + 4edb741 commit 0852c95
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,15 @@ include_directories(
${catkin_INCLUDE_DIRS}
)

ament_auto_add_library(ndt_omp
add_library(ndt_omp
SHARED
src/pclomp/voxel_grid_covariance_omp.cpp
src/pclomp/ndt_omp.cpp
src/pclomp/gicp_omp.cpp
)

ament_export_targets(ndt_omp HAS_LIBRARY_TARGET)

target_link_libraries(ndt_omp ${PCL_LIBRARIES})

if(OpenMP_CXX_FOUND)
Expand All @@ -114,5 +116,15 @@ else()
message(WARNING "OpenMP not found")
endif()

install(
TARGETS
ndt_omp
EXPORT ndt_omp
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin
INCLUDES DESTINATION include
)

ament_auto_package()
endif()

0 comments on commit 0852c95

Please sign in to comment.