]> SALOME platform Git repositories - plugins/blsurfplugin.git/commitdiff
Salome HOME
cmake on 64 bits translate_resources_09Jul10
authoradam <adam>
Fri, 11 Jun 2010 13:09:52 +0000 (13:09 +0000)
committeradam <adam>
Fri, 11 Jun 2010 13:09:52 +0000 (13:09 +0000)
adm_local/cmake_files/FindBLSURF.cmake

index 118d4746f8a89654c0bf2bff77e344ed6e270edd..6e103a76f50ebb0410c9d6a464177650145de616 100644 (file)
@@ -22,8 +22,20 @@ FIND_PATH(BLSURF_INCLUDES_DIR distene/blsurf.h ${BLSURFHOME}/include)
 SET(BLSURF_INCLUDES)
 SET(BLSURF_INCLUDES ${BLSURF_INCLUDES} -I${BLSURF_INCLUDES_DIR})
 
-FIND_LIBRARY(BLSurf BLSurf PATHS ${BLSURFHOME}/lib ${BLSURFHOME}/lib/WinXP_VC9)
-FIND_LIBRARY(distene distene PATHS ${BLSURFHOME}/lib ${BLSURFHOME}/lib/WinXP_VC9)
+SET(BLSURF_LIBS_PATHS)
+SET(BLSURF_LIBS_PATHS ${BLSURF_LIBS_PATHS} ${BLSURFHOME}/lib)
+IF(WINDOWS)
+  SET(BLSURF_LIBS_PATHS ${BLSURF_LIBS_PATHS} ${BLSURFHOME}/lib/WinXP_VC9)
+ELSE(WINDOWS)
+  IF(CMAKE_SIZEOF_VOID_P STREQUAL 8)
+    SET(BLSURF_LIBS_PATHS ${BLSURF_LIBS_PATHS} ${BLSURFHOME}/lib/Linux_64)
+  ELSE()
+    SET(BLSURF_LIBS_PATHS ${BLSURF_LIBS_PATHS} ${BLSURFHOME}/lib/Linux)
+  ENDIF()
+ENDIF(WINDOWS)
+
+FIND_LIBRARY(BLSurf BLSurf PATHS ${BLSURF_LIBS_PATHS})
+FIND_LIBRARY(distene distene PATHS ${BLSURF_LIBS_PATHS})
 
 SET(BLSURF_LIBS)
 SET(BLSURF_LIBS ${BLSURF_LIBS} ${BLSurf})