Added library search for math and realtime library in test and example projects for x11 platform.

master
Marcel Metz ago%!(EXTRA string=14 years)
parent 3cb4dea453
commit b7d1d35c20
  1. 8
      examples/CMakeLists.txt
  2. 6
      tests/CMakeLists.txt

@ -1,8 +1,14 @@
# This line is used to link with static libraries
# Note that the library list should be updated to be obtained from
# the main CMakeLists.txt
# the main CMakeLists.txt
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
${GLFW_SOURCE_DIR}/support
${OPENGL_INCLUDE_DIR})

@ -1,6 +1,12 @@
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
${GLFW_SOURCE_DIR}/support
${OPENGL_INCLUDE_DIR})

Loading…
Cancel
Save