Skip to content

Commit

Permalink
refactor: only install libs and headers
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed Nov 25, 2023
1 parent a273180 commit f311f6a
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 16 deletions.
2 changes: 0 additions & 2 deletions lanelet2_core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ if (NOT DEFINED SKBUILD)
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(DIRECTORY doc/ DESTINATION "doc/${PROJECT_NAME}")
install(DIRECTORY scripts/ DESTINATION "scripts")
endif ()

#############
Expand Down
12 changes: 1 addition & 11 deletions lanelet2_maps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,4 @@ add_custom_target(${PROJECT_NAME})
add_custom_command(
TARGET ${PROJECT_NAME}
COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_BINARY_DIR}"
)

#############
## Install ##
#############
# Install all targets, headers by default and scripts and other files if specified (folders or files).
# This command also exports libraries and config files for dependent packages and this supersedes catkin_package.
if (NOT DEFINED SKBUILD)
install(DIRECTORY res/ DESTINATION "res/")
install(DIRECTORY josm/ DESTINATION "res/" PATTERN ".gitignore" EXCLUDE)
endif ()
)
1 change: 0 additions & 1 deletion lanelet2_projection/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ if (NOT DEFINED SKBUILD)
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(DIRECTORY doc/ DESTINATION "doc/${PROJECT_NAME}")
endif ()

#############
Expand Down
2 changes: 0 additions & 2 deletions lanelet2_routing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ if (NOT DEFINED SKBUILD)
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(DIRECTORY doc/ DESTINATION "doc/${PROJECT_NAME}")
install(DIRECTORY res/ DESTINATION "res/")
endif ()

#############
Expand Down

0 comments on commit f311f6a

Please sign in to comment.