Skip to content

Commit 3c322f5

Browse files
committed
CMakeList.txt: add oLinuXino/Mali
1 parent c8d62cf commit 3c322f5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ else()
2525
MESSAGE("bcm_host.h not found")
2626
endif()
2727

28+
#-------------------------------------------------------------------------------
29+
#check if we're running on olinuxino
30+
MESSAGE("Looking for libMali.so")
31+
if(EXISTS "/usr/lib/libMali.so")
32+
MESSAGE("libMali.so found")
33+
set(GLSystem "OpenGL ES")
34+
else()
35+
MESSAGE("libMali.so not found")
36+
endif()
37+
2838
#finding necessary packages
2939
#-------------------------------------------------------------------------------
3040
if(${GLSystem} MATCHES "Desktop OpenGL")
@@ -167,6 +177,7 @@ else()
167177
)
168178
else()
169179
LIST(APPEND COMMON_LIBRARIES
180+
EGL
170181
${OPENGLES_LIBRARIES}
171182
)
172183
endif()

0 commit comments

Comments
 (0)