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:
parent
45b71f41a9
commit
dad750d1df
@ -203,7 +203,7 @@ IF(CMAKE_COMPILER_IS_GNUCC)
|
|||||||
ENDIF()
|
ENDIF()
|
||||||
ENDIF(CMAKE_COMPILER_IS_GNUCC)
|
ENDIF(CMAKE_COMPILER_IS_GNUCC)
|
||||||
|
|
||||||
if(UNIX AND NOT ANDROID)
|
IF(UNIX AND NOT ANDROID)
|
||||||
FIND_PACKAGE(X11 REQUIRED)
|
FIND_PACKAGE(X11 REQUIRED)
|
||||||
LIST(APPEND LIBS ${X11_LIBRARIES})
|
LIST(APPEND LIBS ${X11_LIBRARIES})
|
||||||
IF(X11_Xrandr_FOUND)
|
IF(X11_Xrandr_FOUND)
|
||||||
@ -219,6 +219,11 @@ if(UNIX AND NOT ANDROID)
|
|||||||
LIST(APPEND LIBS ${X11_Xxf86vm_LIB})
|
LIST(APPEND LIBS ${X11_Xxf86vm_LIB})
|
||||||
ENDIF()
|
ENDIF()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
IF(ANDROID)
|
||||||
|
# -landroid for ANativeWindow
|
||||||
|
# -llog for native Android logging
|
||||||
|
LIST(APPEND LIBS android log)
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
INCLUDE(CheckIncludeFiles)
|
INCLUDE(CheckIncludeFiles)
|
||||||
INCLUDE(CheckFunctionExists)
|
INCLUDE(CheckFunctionExists)
|
||||||
|
Reference in New Issue
Block a user