From 3c322f55c4530d3f58639f359fc42b0ef4e0cedb Mon Sep 17 00:00:00 2001 From: gizmo98 Date: Tue, 6 Jan 2015 21:41:00 +0100 Subject: [PATCH] CMakeList.txt: add oLinuXino/Mali --- CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index be15b3e13..6899b5655 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,6 +25,16 @@ else() MESSAGE("bcm_host.h not found") endif() +#------------------------------------------------------------------------------- +#check if we're running on olinuxino +MESSAGE("Looking for libMali.so") +if(EXISTS "/usr/lib/libMali.so") + MESSAGE("libMali.so found") + set(GLSystem "OpenGL ES") +else() + MESSAGE("libMali.so not found") +endif() + #finding necessary packages #------------------------------------------------------------------------------- if(${GLSystem} MATCHES "Desktop OpenGL") @@ -167,6 +177,7 @@ else() ) else() LIST(APPEND COMMON_LIBRARIES + EGL ${OPENGLES_LIBRARIES} ) endif()