kmscube: use drmModeAddFB2 version of ExtFB
[android/external-libkmsxx.git] / kms++ / CMakeLists.txt
index 4409b8b0bfec4bcf4697e54814a864384c7ffde0..d983964aa46e39ddc9c4fe79b2f42893c91db2d4 100644 (file)
@@ -1,8 +1,12 @@
 include_directories(${LIBDRM_INCLUDE_DIRS})
 link_directories(${LIBDRM_LIBRARY_DIRS})
 
-file(GLOB SRCS "*.cpp" "*.h")
+file(GLOB SRCS "src/*.cpp" "src/*.h" "inc/kms++/*.h")
 add_library(kms++ ${SRCS})
 
+target_include_directories(kms++ PUBLIC
+    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc>
+    $<INSTALL_INTERFACE:include>
+    PRIVATE src)
+
 target_link_libraries(kms++ ${LIBDRM_LIBRARIES})
-target_include_directories(kms++ PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})