diff --git a/CMakeLists.txt b/CMakeLists.txt index a2fcd4e1..a84205e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -192,6 +192,7 @@ install(TARGETS async_slam_toolbox_node map_and_localization_slam_toolbox_node merge_maps_kinematic ${libraries} + kartoSlamToolbox ARCHIVE DESTINATION lib LIBRARY DESTINATION lib RUNTIME DESTINATION lib/${PROJECT_NAME} @@ -222,7 +223,7 @@ install(FILES solver_plugins.xml rviz_plugins.xml ) ament_export_include_directories(include) -ament_export_libraries(${libraries}) +ament_export_libraries(${libraries} kartoSlamToolbox) ament_export_dependencies(${dependencies}) ament_export_targets(SlamToolboxPlugin HAS_LIBRARY_TARGET) ament_package() diff --git a/lib/karto_sdk/CMakeLists.txt b/lib/karto_sdk/CMakeLists.txt index 6502466c..cd07927f 100644 --- a/lib/karto_sdk/CMakeLists.txt +++ b/lib/karto_sdk/CMakeLists.txt @@ -34,14 +34,3 @@ target_link_libraries(kartoSlamToolbox ${Boost_LIBRARIES} TBB::tbb) install(DIRECTORY include/ DESTINATION include/ ) - -install(TARGETS kartoSlamToolbox - ARCHIVE DESTINATION lib - LIBRARY DESTINATION lib - RUNTIME DESTINATION lib/${PROJECT_NAME} -) - -ament_export_libraries(kartoSlamToolbox) -ament_export_include_directories(include) -ament_export_dependencies(${dependencies}) -ament_package()