summaryrefslogtreecommitdiff
path: root/kms++util/CMakeLists.txt
blob: abee194d2c4e54ad1a396ab09cb55e4ecccffb2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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>
    $<INSTALL_INTERFACE:include>
    PRIVATE src)

target_link_libraries(kms++util kms++)

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)