]> git.jsancho.org Git - lugaru.git/blobdiff - CMakeLists.txt
Fixed Windows conditionals for building resources and OpenGL library linkage in CMake...
[lugaru.git] / CMakeLists.txt
index 3506973d23821a835bc362bd5e94b438a0e468cb..abcb734330e7168c305ed6f518734de440094856 100644 (file)
@@ -23,7 +23,10 @@ endif(NOT LUGARU_INSTALL_PREFIX)
 set(CMAKE_INSTALL_PREFIX "${LUGARU_INSTALL_PREFIX}" CACHE INTERNAL "Prefix
 prepended to install directories" FORCE)
 
-
+if(WIN32)
+       set(OPENGL_gl_LIBRARY "-lopengl32" CACHE STRING "OpenGL library for Win32" FORCE)
+       set(OPENGL_glu_LIBRARY "-lglu32" CACHE STRING "GLU library for Win32" FORCE)
+endif(WIN32)
 
 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
 find_package(OpenAL REQUIRED)