summaryrefslogtreecommitdiff
path: root/kms++util
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2016-08-11 22:12:43 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-08-11 22:35:26 +0300
commita740efaa0c3545afb3dbf77739fc83bf30e574b9 (patch)
tree201660010430449879b8d662563e4edb8ec94eec /kms++util
parent2754279db8d359b0c6d846c1e8f851e1ef90bb43 (diff)
add basic cmake install system
Diffstat (limited to 'kms++util')
-rw-r--r--kms++util/CMakeLists.txt13
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)