From 96fbfbc72d8194909f9bdf8d43fc1db0092986bd Mon Sep 17 00:00:00 2001 From: Myy Date: Thu, 12 Jan 2017 14:48:52 +0000 Subject: [PATCH] Allow the use of CMake to compile the example This add the possibility to use CMake, instead of the Autotools, to build the example. Autogen.sh is still present and usable, though. The biggest problem I had with ./autogen.sh was the fact that it takes between 30 seconds to one minute to get the whole project prepared, on some ARMv7 boards. CMake takes a few seconds at most, on the same hardware. Signed-off-by: Myy --- CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100755 index 0000000..822bfee --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,10 @@ +cmake_minimum_required(VERSION 2.8) + +project(KMSCube) + +include(FindPkgConfig) + +pkg_search_module(DRM REQUIRED libdrm) +include_directories(${DRM_INCLUDE_DIRS}) +add_executable(kmscube kmscube.c esTransform.c) +target_link_libraries(kmscube ${DRM_LIBRARIES} GLESv2 EGL gbm m)