mirror of
https://github.com/glfw/glfw.git
synced 2024-11-14 10:34:34 +00:00
Added library search for math and realtime library in test and example projects for x11 platform.
This commit is contained in:
parent
3cb4dea453
commit
b7d1d35c20
@ -3,6 +3,12 @@
|
|||||||
# the main CMakeLists.txt
|
# the main CMakeLists.txt
|
||||||
link_libraries(libglfwStatic ${GLFW_LIBRARIES} ${OPENGL_glu_LIBRARY})
|
link_libraries(libglfwStatic ${GLFW_LIBRARIES} ${OPENGL_glu_LIBRARY})
|
||||||
|
|
||||||
|
if (UNIX AND NOT APPLE AND NOT CYGWIN)
|
||||||
|
find_library(MATH_LIBRARY m)
|
||||||
|
find_library(REALTIME_LIBRARY rt)
|
||||||
|
link_libraries(${MATH_LIBRARY} ${REALTIME_LIBRARY})
|
||||||
|
endif (UNIX AND NOT APPLE AND NOT CYGWIN)
|
||||||
|
|
||||||
include_directories(${GLFW_SOURCE_DIR}/include
|
include_directories(${GLFW_SOURCE_DIR}/include
|
||||||
${GLFW_SOURCE_DIR}/support
|
${GLFW_SOURCE_DIR}/support
|
||||||
${OPENGL_INCLUDE_DIR})
|
${OPENGL_INCLUDE_DIR})
|
||||||
|
@ -1,6 +1,12 @@
|
|||||||
|
|
||||||
link_libraries(libglfwStatic ${GLFW_LIBRARIES} ${OPENGL_glu_LIBRARY})
|
link_libraries(libglfwStatic ${GLFW_LIBRARIES} ${OPENGL_glu_LIBRARY})
|
||||||
|
|
||||||
|
if (UNIX AND NOT APPLE AND NOT CYGWIN)
|
||||||
|
find_library(MATH_LIBRARY m)
|
||||||
|
find_library(REALTIME_LIBRARY rt)
|
||||||
|
link_libraries(${MATH_LIBRARY} ${REALTIME_LIBRARY})
|
||||||
|
endif (UNIX AND NOT APPLE AND NOT CYGWIN)
|
||||||
|
|
||||||
include_directories(${GLFW_SOURCE_DIR}/include
|
include_directories(${GLFW_SOURCE_DIR}/include
|
||||||
${GLFW_SOURCE_DIR}/support
|
${GLFW_SOURCE_DIR}/support
|
||||||
${OPENGL_INCLUDE_DIR})
|
${OPENGL_INCLUDE_DIR})
|
||||||
|
Loading…
Reference in New Issue
Block a user