]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Preparing Win64 version
authorana <ana@opencascade.com>
Thu, 28 Feb 2013 14:49:53 +0000 (14:49 +0000)
committerana <ana@opencascade.com>
Thu, 28 Feb 2013 14:49:53 +0000 (14:49 +0000)
adm_local/cmake_files/deprecated/FindOPENGL.cmake

index d7e8d4fed9e89710035d5761ba92f3490af1187e..794f641cc2c75318465f5d84f773ec3ca14d0f9a 100644 (file)
 #
 
 IF(${WINDOWS})
-  FIND_LIBRARY(OpenGL_LIB OpenGL32 "C:/Program Files/Microsoft SDKs/Windows/v6.0A/lib")
-  FIND_LIBRARY(GlU_LIB GlU32 "C:/Program Files/Microsoft SDKs/Windows/v6.0A/lib")
+  IF("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")          # if platform is Windows 64 bit 
+    FIND_LIBRARY(OpenGL_LIB OpenGL32 HINTS "C:/Program Files/Microsoft SDKs/Windows/v6.0A/lib/x64")
+    FIND_LIBRARY(GlU_LIB GlU32 HINTS "C:/Program Files/Microsoft SDKs/Windows/v6.0A/lib/x64")
+  ELSE("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
+    FIND_LIBRARY(OpenGL_LIB OpenGL32 "C:/Program Files/Microsoft SDKs/Windows/v6.0A/lib")
+    FIND_LIBRARY(GlU_LIB GlU32 "C:/Program Files/Microsoft SDKs/Windows/v6.0A/lib")
+  ENDIF("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
 ELSE(${WINDOWS})
   FIND_LIBRARY(OpenGL_LIB GL)
   FIND_LIBRARY(GlU_LIB GLU)