testpat: use new id/idx resolving
[android/external-libkmsxx.git] / kmscube / CMakeLists.txt
index 9c1a9d672630f07b0e43b76720b4a6b46a4b7910..b6bac29422681e1a8af81a674affdbb7ad658c2e 100644 (file)
@@ -5,6 +5,9 @@ pkg_check_modules(GBM gbm REQUIRED)
 pkg_check_modules(X11 x11 REQUIRED)
 pkg_check_modules(XCB xcb REQUIRED)
 pkg_check_modules(X11XCB x11-xcb REQUIRED)
+pkg_check_modules(WL wayland-client REQUIRED)
+pkg_check_modules(WL_EGL wayland-egl REQUIRED)
+
 
 include_directories(
     ${LIBDRM_INCLUDE_DIRS}
@@ -26,8 +29,10 @@ link_directories(
     ${X11XCB_LIBRARY_DIRS}
 )
 
-add_executable (kmscube kmscube.cpp esTransform.c esUtil.h cube.h)
-target_link_libraries(kmscube kms++ kmstest
+add_executable (kmscube cube.cpp cube.h cube-egl.cpp cube-egl.h cube-gles2.cpp cube-gles2.h
+    cube-null.cpp cube-gbm.cpp cube-x11.cpp cube-wl.cpp
+    esTransform.c esTransform.h)
+target_link_libraries(kmscube kms++ kms++util
     ${LIBDRM_LIBRARIES}
     ${GLESv2_LIBRARIES}
     ${EGL_LIBRARIES}
@@ -35,4 +40,6 @@ target_link_libraries(kmscube kms++ kmstest
     ${X11_LIBRARIES}
     ${XCB_LIBRARIES}
     ${X11XCB_LIBRARIES}
+    ${WL_LIBRARIES}
+    ${WL_EGL_LIBRARIES}
 )