FIND_PACKAGE(crea REQUIRED)
IF (crea_FOUND)
INCLUDE(${crea_USE_FILE})
+
ENDIF(crea_FOUND)
)
IF(WIN32)
-INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/win32)
-LINK_DIRECTORIES(${PROJECT_SOURCE_DIR}/win32)
+ IF(MSVC AND CMAKE_SIZEOF_VOID_P MATCHES 4)
+ INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/win32)
+ LINK_DIRECTORIES(${PROJECT_SOURCE_DIR}/win32)
+ endif()
+ IF(MSVC AND CMAKE_SIZEOF_VOID_P MATCHES 8)
+ INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/win64)
+ LINK_DIRECTORIES(${PROJECT_SOURCE_DIR}/win64)
+ endif()
ENDIF(WIN32)
-
-
-
SET(LIBNAME creaImageIO)
INCLUDE_DIRECTORIES(
${PROJECT_BINARY_DIR}
#
SUBDIRS(appli)
SUBDIRS(bbtk)
-SUBDIRS(win32)
+
+IF(MSVC AND CMAKE_SIZEOF_VOID_P MATCHES 4)
+ SUBDIRS(win32)
+endif()
+IF(MSVC AND CMAKE_SIZEOF_VOID_P MATCHES 8)
+ SUBDIRS(win64)
+endif()
+
SUBDIRS(install)
# Header Files
-FILE(GLOB HEADER_CREAIMAGEIO creaImageIOImagePointerHolder.h)
+FILE(GLOB HEADER_CREAIMAGEIO creaImageIOImagePointerHolder.h CppSQLite3.h)
FILE(GLOB SOURCES_CREAIMAGEIO_PACS PACS/*.cpp)
FILE(GLOB HEADER_CREAIMAGEIO_PACS PACS/*.h)
${SOURCES_CREAIMAGEIO_TREE}
)
+IF(MSVC AND CMAKE_SIZEOF_VOID_P MATCHES 8)
+
+message("charlie ${CMAKE_SYSTEM_PROCESSOR}")
+endif()
+#if ( ${CMAKE_EXE_LINKER_FLAGS} MATCHES "message:x64")message("charlie ${CMAKE_SYSTEM_PROCESSOR}")endif()
+
if( BUILD_CREA_PACS)
SET (SRCS
${PRIMITIVE_SRCS}
sqlite3)
ENDIF(NOT USE_XERCES)
-
+
#----------------------------------------------------------------------------
# INSTALLS LIBRARY
FILE(GLOB HEADERS "*.h" "*.txx")
INCLUDE_DIRECTORIES(
# ${PROJECT_BINARY_DIR}
${PROJECT_SOURCE_DIR}/src
-# ${PROJECT_SOURCE_DIR}/src/CppSQLite3
+
)