51ccc659e226c96fad4cbadd4b9c42b4ebb50876
[android/external-libkmsxx.git] / kms++ / CMakeLists.txt
1 include_directories(${LIBDRM_INCLUDE_DIRS})
2 link_directories(${LIBDRM_LIBRARY_DIRS})
4 file(GLOB SRCS "src/*.cpp" "src/*.h")
5 file(GLOB PUB_HDRS "inc/kms++/*.h")
6 add_library(kms++ ${SRCS} ${PUB_HDRS})
8 target_include_directories(kms++ PUBLIC
9     $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc>
10     $<INSTALL_INTERFACE:include>
11     PRIVATE src)
13 target_link_libraries(kms++ ${LIBDRM_LIBRARIES})
15 set_target_properties(kms++ PROPERTIES
16     PUBLIC_HEADER "${PUB_HDRS}")
18 install(TARGETS kms++
19     LIBRARY DESTINATION lib
20     ARCHIVE DESTINATION lib
21     PUBLIC_HEADER DESTINATION include/kms++)