# SET (EXECUTABLE_OUTPUT_REL_PATH bin)
# SET (LIBRARY_OUTPUT_REL_PATH bin)
SET(BBTK_BIN_PATH ${BBTK_INSTALL_PREFIX}/bin)
-#EED SET(BBTK_PACKAGE_LIB_PATH ${BBTK_INSTALL_PREFIX}/lib)
- SET(BBTK_PACKAGE_LIB_PATH lib)
+
+ if( NOT APPLE )
+ # check 64 bit
+ if( ${CMAKE_SIZEOF_VOID_P} EQUAL 4 )
+ set( HAVE_64_BIT 0 )
+ SET(BBTK_PACKAGE_LIB_PATH lib)
+ else( ${CMAKE_SIZEOF_VOID_P}EQUAL 4 )
+ set( HAVE_64_BIT 1 )
+ SET(BBTK_PACKAGE_LIB_PATH lib64)
+ endif( ${CMAKE_SIZEOF_VOID_P} EQUAL 4 )
+ endif( NOT APPLE )
+
+
+
SET(BBTK_BBI "${BBTK_BIN_PATH}/bbi")
SET(BBTK_BBS2CPP "${BBTK_BIN_PATH}/bbs2cpp")
SET(BBTK_BBC "${BBTK_BIN_PATH}/bbc")
SET(BBTK_BBFY ${BBTK_BIN_PATH}/bbfy.exe)
ELSE(WIN32)
- SET(BBTK_LIB_PATH lib)
+ 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)