diff options
Diffstat (limited to 'kms++util')
-rw-r--r-- | kms++util/CMakeLists.txt | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/kms++util/CMakeLists.txt b/kms++util/CMakeLists.txt index 3977f70..2fc15e3 100644 --- a/kms++util/CMakeLists.txt +++ b/kms++util/CMakeLists.txt @@ -1,5 +1,6 @@ -file(GLOB SRCS "src/*.cpp" "src/*.h" "inc/kms++util/*.h") -add_library(kms++util ${SRCS}) +file(GLOB SRCS "src/*.cpp" "src/*.h") +file(GLOB PUB_HDRS "inc/kms++util/*.h") +add_library(kms++util ${SRCS} ${PUB_HDRS}) target_include_directories(kms++util PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc> @@ -7,3 +8,11 @@ target_include_directories(kms++util PUBLIC PRIVATE src) target_link_libraries(kms++util kms++ pthread) + +set_target_properties(kms++util PROPERTIES + PUBLIC_HEADER "${PUB_HDRS}") + +install(TARGETS kms++util + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib + PUBLIC_HEADER DESTINATION include/kms++util) |