Skip to content

Commit

Permalink
install kokkos layer headers only if option is set
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelKoch committed May 6, 2024
1 parent ff85cfc commit 036abdd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cmake/install_helpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,11 @@ function(ginkgo_install)

# install the public header files
install(DIRECTORY "${Ginkgo_SOURCE_DIR}/include/"
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
COMPONENT Ginkgo_Development
FILES_MATCHING PATTERN "*.hpp"
)
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
COMPONENT Ginkgo_Development
FILES_MATCHING PATTERN "*.hpp"
PATTERN "extensions" EXCLUDE
)
install(FILES "${Ginkgo_BINARY_DIR}/include/ginkgo/config.hpp"
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/ginkgo"
COMPONENT Ginkgo_Development
Expand Down
6 changes: 6 additions & 0 deletions extensions/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ if(GINKGO_EXTENSION_KOKKOS)
target_link_libraries(ginkgo_ext INTERFACE ginkgo_ext_kokkos)

ginkgo_install_library(ginkgo_ext_kokkos)
install(DIRECTORY "${Ginkgo_SOURCE_DIR}/include/ginkgo/extensions/kokkos"
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/ginkgo/extensions"
)
install(FILES "${Ginkgo_SOURCE_DIR}/include/ginkgo/extensions/kokkos.hpp"
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/ginkgo/extensions"
)
endif()

ginkgo_install_library(ginkgo_ext)
Expand Down

0 comments on commit 036abdd

Please sign in to comment.