diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-08-11 22:12:43 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-08-11 22:35:26 +0300 |
commit | a740efaa0c3545afb3dbf77739fc83bf30e574b9 (patch) | |
tree | 201660010430449879b8d662563e4edb8ec94eec /kms++ | |
parent | 2754279db8d359b0c6d846c1e8f851e1ef90bb43 (diff) |
add basic cmake install system
Diffstat (limited to 'kms++')
-rw-r--r-- | kms++/CMakeLists.txt | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/kms++/CMakeLists.txt b/kms++/CMakeLists.txt index d983964..51ccc65 100644 --- a/kms++/CMakeLists.txt +++ b/kms++/CMakeLists.txt @@ -1,8 +1,9 @@ include_directories(${LIBDRM_INCLUDE_DIRS}) link_directories(${LIBDRM_LIBRARY_DIRS}) -file(GLOB SRCS "src/*.cpp" "src/*.h" "inc/kms++/*.h") -add_library(kms++ ${SRCS}) +file(GLOB SRCS "src/*.cpp" "src/*.h") +file(GLOB PUB_HDRS "inc/kms++/*.h") +add_library(kms++ ${SRCS} ${PUB_HDRS}) target_include_directories(kms++ PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc> @@ -10,3 +11,11 @@ target_include_directories(kms++ PUBLIC PRIVATE src) target_link_libraries(kms++ ${LIBDRM_LIBRARIES}) + +set_target_properties(kms++ PROPERTIES + PUBLIC_HEADER "${PUB_HDRS}") + +install(TARGETS kms++ + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib + PUBLIC_HEADER DESTINATION include/kms++) |