Added OpenGL preference (GLVND or LEGACY) command line options to cmake build.
This commit is contained in:
parent
d3b0ce3acb
commit
d11cea3a98
3
README
3
README
|
@ -84,6 +84,9 @@ Look in the src/CMakeList.txt file to tweak options.
|
|||
The Qt (or GTK) GUI is required and automatically builds as part of the build. The Qt GUI is the default.
|
||||
When invoking cmake, the GTK GUI can be built (instead of Qt) by specifying a -DGTK=1 on the command line.
|
||||
See above build instructions.
|
||||
OpenGL options:
|
||||
For Linux builds, the OpenGL library preference can be either GLVND or LEGACY (default).
|
||||
To use GLVND OpenGL, add a -DGLVND=1 on the cmake command line.
|
||||
|
||||
5 - LUA Scripting
|
||||
-----------------
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
|
||||
if ( ${GTK} )
|
||||
message( STATUS "GUI backend: GTK")
|
||||
set( APP_NAME fceux-gtk)
|
||||
else()
|
||||
message( STATUS "GUI backend: QT")
|
||||
set( APP_NAME fceux)
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTORCC ON)
|
||||
|
@ -24,8 +26,13 @@ else(WIN32)
|
|||
# Non Windows System
|
||||
# UNIX (Linux or Mac OSX)
|
||||
|
||||
#set (OpenGL_GL_PREFERENCE GLVND)
|
||||
set (OpenGL_GL_PREFERENCE LEGACY)
|
||||
if ( ${GLVND} )
|
||||
message( STATUS "OpenGL preference: GLVND")
|
||||
set (OpenGL_GL_PREFERENCE GLVND)
|
||||
else()
|
||||
message( STATUS "OpenGL preference: LEGACY")
|
||||
set (OpenGL_GL_PREFERENCE LEGACY)
|
||||
endif()
|
||||
|
||||
# Use the built-in cmake find_package functions to find dependencies
|
||||
# Use package PkgConfig to detect headers/library what find_package cannot find.
|
||||
|
|
Loading…
Reference in New Issue