Added helper commands and configuration to make it easier to install

This commit is contained in:
Alejandro Saucedo 2020-09-13 10:06:47 +01:00
parent 2e8a5aa3a6
commit b1a0dd3ecd
3 changed files with 17 additions and 6 deletions

View file

@ -46,7 +46,6 @@ add_dependencies(kompute
add_library(kompute::kompute ALIAS kompute)
install(TARGETS kompute EXPORT KomputeTargets
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
@ -54,8 +53,11 @@ install(TARGETS kompute EXPORT KomputeTargets
install(DIRECTORY include/ DESTINATION include)
install(DIRECTORY ${PROJECT_SOURCE_DIR}/single_include/
DESTINATION include)
install(EXPORT KomputeTargets
FILE KomputeTargets.cmake
NAMESPACE kp::
FILE komputeConfig.cmake
NAMESPACE kompute::
DESTINATION lib/cmake/kompute)