]> git.jsancho.org Git - lugaru.git/commitdiff
Added Win32 conditional to CMake scripts for building on Windows
authorNeal Gompa <ngompa13@gmail.com>
Wed, 12 May 2010 22:48:24 +0000 (17:48 -0500)
committerNeal Gompa <ngompa13@gmail.com>
Wed, 12 May 2010 22:48:24 +0000 (17:48 -0500)
CMakeLists.txt

index 3506973d23821a835bc362bd5e94b438a0e468cb..b988ac11c2e9ecce666c1b7a853e65bd62028351 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)