From: Neal Gompa Date: Wed, 12 May 2010 22:48:24 +0000 (-0500) Subject: Added Win32 conditional to CMake scripts for building on Windows X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=043ab356b2232da7100cc5ae75df2bcca5f3f23a;p=lugaru.git Added Win32 conditional to CMake scripts for building on Windows --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 3506973..b988ac1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)