[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/libs/kgllib
From:       Rivo Laks <rivolaks () hot ! ee>
Date:       2009-07-01 18:25:56
Message-ID: 1246472756.560157.10652.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 990124 by rivol:

Small buildsystem additions to make KGLLib compile on windows

 M  +5 -0      CMakeLists.txt  


--- trunk/playground/libs/kgllib/CMakeLists.txt #990123:990124
@@ -14,6 +14,7 @@
 # These are set here so that find_package() calls can make use of them
 set(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)" )
 set(EXEC_INSTALL_PREFIX  ${CMAKE_INSTALL_PREFIX}  CACHE PATH  "Base directory for \
executables and libraries" FORCE) +set(BIN_INSTALL_DIR      \
"${EXEC_INSTALL_PREFIX}/bin"    CACHE PATH "The subdirectory to the binaries prefix \
(default prefix/bin)" FORCE)  set(LIB_INSTALL_DIR      \
"${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX}"  CACHE PATH "The subdirectory relative to \
the install prefix where libraries will be installed (default is /lib${LIB_SUFFIX})" \
FORCE)  set(INCLUDE_INSTALL_DIR  "${CMAKE_INSTALL_PREFIX}/include"  CACHE PATH "The \
subdirectory to the header prefix" FORCE)  set(DATA_INSTALL_DIR  \
"${CMAKE_INSTALL_PREFIX}/share/apps"  CACHE PATH "The subdirectory where apps can \
install their data" FORCE) @@ -49,8 +50,12 @@
     message(STATUS "GLEW was not found. Using internal GLEW")
 
     include_directories(${CMAKE_CURRENT_SOURCE_DIR}/glew)
+    add_definitions(-DGLEW_STATIC)
     add_subdirectory(glew)
     set(GLEW_GLEW_LIBRARY glew)
+    if(WIN32)
+        set(GLEW_GLEW_LIBRARY ${GLEW_GLEW_LIBRARY} -lopengl32)
+    endif(WIN32)
 endif(NOT GLEW_FOUND)
 
 add_subdirectory(core)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic