diff options
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++) |