Add kmscube
[android/external-libkmsxx.git] / kmscube / CMakeLists.txt
1 include_directories(${LIBDRM_INCLUDE_DIRS})
2 link_directories(${LIBDRM_LIBRARY_DIRS})
4 pkg_check_modules(GLESv2 glesv2 REQUIRED)
5 include_directories(${GLESv2_INCLUDE_DIRS})
6 link_directories(${GLESv2_LIBRARY_DIRS})
8 pkg_check_modules(EGL egl REQUIRED)
9 include_directories(${EGL_INCLUDE_DIRS})
10 link_directories(${EGL_LIBRARY_DIRS})
12 pkg_check_modules(GBM gbm REQUIRED)
13 include_directories(${GBM_INCLUDE_DIRS})
14 link_directories(${GBM_LIBRARY_DIRS})
16 add_executable (kmscube kmscube.cpp esTransform.c esUtil.h cube.h)
17 target_link_libraries(kmscube kms++ kmstest ${LIBDRM_LIBRARIES} ${GLESv2_LIBRARIES} ${EGL_LIBRARIES} ${GBM_LIBRARIES})