kmsutils: add VideoDevice
[android/external-libkmsxx.git] / kms++util / CMakeLists.txt
index 533b4467b2509529a9aad6153206a9350b2524a7..3977f7083d641fd31f933510c2c71ac92ea98ec6 100644 (file)
@@ -1,5 +1,9 @@
-file(GLOB SRCS "*.cpp" "*.h")
+file(GLOB SRCS "src/*.cpp" "src/*.h" "inc/kms++util/*.h")
 add_library(kms++util ${SRCS})
 
+target_include_directories(kms++util PUBLIC
+    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc>
+    $<INSTALL_INTERFACE:include>
+    PRIVATE src)
+
 target_link_libraries(kms++util kms++ pthread)
-target_include_directories(kms++util PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})