mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-04 17:24:47 +00:00
Fixed: Link to X11 under Linux
This commit is contained in:
parent
15294759d7
commit
ba44a72339
1 changed files with 4 additions and 2 deletions
|
@ -1,16 +1,18 @@
|
||||||
FIND_PACKAGE(OpenGL REQUIRED)
|
|
||||||
|
|
||||||
IF(NOT WIN32)
|
IF(NOT WIN32)
|
||||||
IF(APPLE)
|
IF(APPLE)
|
||||||
FIND_LIBRARY(CARBON NAMES Carbon)
|
FIND_LIBRARY(CARBON NAMES Carbon)
|
||||||
FIND_LIBRARY(COCOA NAMES Cocoa)
|
FIND_LIBRARY(COCOA NAMES Cocoa)
|
||||||
|
FIND_PACKAGE(OpenGL REQUIRED)
|
||||||
ELSE()
|
ELSE()
|
||||||
SET(OLD_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES})
|
SET(OLD_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES})
|
||||||
SET(CMAKE_FIND_LIBRARY_SUFFIXES .so)
|
SET(CMAKE_FIND_LIBRARY_SUFFIXES .so)
|
||||||
FIND_PACKAGE(X11)
|
FIND_PACKAGE(X11)
|
||||||
FIND_PACKAGE(XF86VidMode)
|
FIND_PACKAGE(XF86VidMode)
|
||||||
|
FIND_PACKAGE(OpenGL REQUIRED)
|
||||||
SET(CMAKE_FIND_LIBRARY_SUFFIXES ${OLD_CMAKE_FIND_LIBRARY_SUFFIXES})
|
SET(CMAKE_FIND_LIBRARY_SUFFIXES ${OLD_CMAKE_FIND_LIBRARY_SUFFIXES})
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
ELSE()
|
||||||
|
FIND_PACKAGE(OpenGL REQUIRED)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
FILE(GLOB SRC *.cpp *.h *.def *.rc)
|
FILE(GLOB SRC *.cpp *.h *.def *.rc)
|
||||||
|
|
Loading…
Reference in a new issue