]> Creatis software - bbtk.git/blobdiff - kernel/cmake/BBTKKernelConfig.cmake
*** empty log message ***
[bbtk.git] / kernel / cmake / BBTKKernelConfig.cmake
index d461929f74693997c7db3f48b51f888f4c150f29..94c7831b4639306678cd15dcb2b56da3e81dc7af 100644 (file)
@@ -44,6 +44,9 @@ SET (LIBRARY_OUTPUT_PATH
 # WARNING : 
 # On WIN32, these paths will only be right at *BUILD TIME* in VS6 or .net
 # Cannot be used at cmake run time !
+
+SET(BBTK_LIB_PATH ${CMAKE_CREA_LIB_PATH} )
+
 IF(WIN32)
   IF(MSVC10)  #FCY 18-06-10
          SET(BBTK_BIN_PATH $(OutDir))
@@ -54,23 +57,12 @@ IF(WIN32)
            SET(BBTK_BIN_PATH $(SolutionDir)/$(OutDir))
          ENDIF(CMAKE_GENERATOR STREQUAL "Visual Studio 6")
   ENDIF(MSVC10)
-  SET(BBTK_LIB_PATH bin)
   SET(BBTK_BBS2CPP ${BBTK_BIN_PATH}/bbs2cpp.exe)
   SET(BBTK_BBC ${BBTK_BIN_PATH}/bbc.exe)
   SET(BBTK_BBI ${BBTK_BIN_PATH}/bbi.exe)
   SET(BBTK_BBFY ${BBTK_BIN_PATH}/bbfy.exe)
 
 ELSE(WIN32)
-       if( NOT APPLE )
-               # check 64 bit
-               if( ${CMAKE_SIZEOF_VOID_P} EQUAL 4 )
-                       set( HAVE_64_BIT 0 )
-                       SET(BBTK_LIB_PATH  lib)
-               else( ${CMAKE_SIZEOF_VOID_P}EQUAL 4 )
-                       set( HAVE_64_BIT 1 )
-                       SET(BBTK_LIB_PATH  lib64)
-               endif( ${CMAKE_SIZEOF_VOID_P} EQUAL 4 )
-        endif( NOT APPLE )
 # For Xcode : have to test the cmake generator !
   IF ( CMAKE_GENERATOR STREQUAL Xcode)
     SET(BBTK_BIN_PATH ${EXECUTABLE_OUTPUT_PATH}/Debug)