Skip to content

Commit

Permalink
build: exclude package components from install target
Browse files Browse the repository at this point in the history
  • Loading branch information
alerei committed Jan 17, 2024
1 parent 394593e commit 2f2cf9f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ jobs:
- name: "CMake: Build"
run: |
cmake --build build/${{ matrix.arch }}
- name: "CMake: Install"
run: |
cmake --build build/${{ matrix.arch }} --target install
- name: "CMake: Packages"
- name: "CMake: Package"
run: |
cmake --build build/${{ matrix.arch }} --target package
- name: "Archive packages"
Expand Down
4 changes: 4 additions & 0 deletions pkg/libflunder-dev/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,22 @@ install(
DESTINATION ${CMAKE_INSTALL_LIBDIR}
NAMELINK_ONLY
COMPONENT dev
EXCLUDE_FROM_ALL
)
install(
TARGETS flunder.static ARCHIVE
DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT dev
EXCLUDE_FROM_ALL
)
install(
DIRECTORY ${CMAKE_SOURCE_DIR}/include/flunder
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
COMPONENT dev
EXCLUDE_FROM_ALL
)
install(FILES copyright
DESTINATION share/doc/libflunder-dev
COMPONENT dev
EXCLUDE_FROM_ALL
)
3 changes: 3 additions & 0 deletions pkg/libflunder/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ install(
TARGETS flunder.shared LIBRARY
NAMELINK_SKIP
COMPONENT runtime
EXCLUDE_FROM_ALL
)
get_target_property(zenohc-lib zenohc::lib IMPORTED_LOCATION)
install(
Expand All @@ -27,8 +28,10 @@ install(
PERMISSIONS GROUP_READ GROUP_EXECUTE
PERMISSIONS WORLD_READ WORLD_EXECUTE
COMPONENT runtime
EXCLUDE_FROM_ALL
)
install(FILES copyright
DESTINATION share/doc/libflunder
COMPONENT runtime
EXCLUDE_FROM_ALL
)

0 comments on commit 2f2cf9f

Please # to comment.