mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-30 20:13:22 +08:00
@@ -39,6 +39,7 @@ elseif(UNIX AND NOT APPLE)
|
|||||||
# note that the order is important for setting the libs
|
# note that the order is important for setting the libs
|
||||||
# use pkg-config --libs $(pkg-config --print-requires --print-requires-private glfw3) in a terminal to confirm
|
# use pkg-config --libs $(pkg-config --print-requires --print-requires-private glfw3) in a terminal to confirm
|
||||||
set(LIBS ${GLFW3_LIBRARY} X11 Xrandr Xinerama Xi Xxf86vm Xcursor GL dl pthread ${ASSIMP_LIBRARY})
|
set(LIBS ${GLFW3_LIBRARY} X11 Xrandr Xinerama Xi Xxf86vm Xcursor GL dl pthread ${ASSIMP_LIBRARY})
|
||||||
|
set (CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE} -ldl")
|
||||||
elseif(APPLE)
|
elseif(APPLE)
|
||||||
INCLUDE_DIRECTORIES(/System/Library/Frameworks)
|
INCLUDE_DIRECTORIES(/System/Library/Frameworks)
|
||||||
FIND_LIBRARY(COCOA_LIBRARY Cocoa)
|
FIND_LIBRARY(COCOA_LIBRARY Cocoa)
|
||||||
|
|||||||
Reference in New Issue
Block a user