Android: reference android library dependencies, needed for shared libs builds

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1273 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
beuc 2012-05-01 09:33:05 +00:00
parent 45b71f41a9
commit dad750d1df

View File

@ -203,7 +203,7 @@ IF(CMAKE_COMPILER_IS_GNUCC)
ENDIF()
ENDIF(CMAKE_COMPILER_IS_GNUCC)
if(UNIX AND NOT ANDROID)
IF(UNIX AND NOT ANDROID)
FIND_PACKAGE(X11 REQUIRED)
LIST(APPEND LIBS ${X11_LIBRARIES})
IF(X11_Xrandr_FOUND)
@ -219,6 +219,11 @@ if(UNIX AND NOT ANDROID)
LIST(APPEND LIBS ${X11_Xxf86vm_LIB})
ENDIF()
ENDIF()
IF(ANDROID)
# -landroid for ANativeWindow
# -llog for native Android logging
LIST(APPEND LIBS android log)
ENDIF()
INCLUDE(CheckIncludeFiles)
INCLUDE(CheckFunctionExists)