]> Creatis software - creaImageIO.git/commitdiff
changes for X64 compilation.
authorFrederic Cervenansky <Frederic.Cervenansky@creatis.insa-lyon.fr>
Mon, 7 Jun 2010 15:23:35 +0000 (15:23 +0000)
committerFrederic Cervenansky <Frederic.Cervenansky@creatis.insa-lyon.fr>
Mon, 7 Jun 2010 15:23:35 +0000 (15:23 +0000)
CMakeLists.txt
src/CMakeLists.txt

index 0432a40930a23958fa814907d36f44d5f9ce9f94..6d6e6d2b9742b369f4db62ebe058eb5becd6e3ed 100644 (file)
@@ -23,6 +23,7 @@ SET(CREA_VERBOSE_CMAKE TRUE)
 FIND_PACKAGE(crea REQUIRED)
 IF (crea_FOUND)
   INCLUDE(${crea_USE_FILE})
+
 ENDIF(crea_FOUND)
 
 
@@ -62,13 +63,16 @@ MARK_AS_ADVANCED(
   )
 
 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}
@@ -97,6 +101,13 @@ ENDIF(BUILD_CREA_PACS)
 #
 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)
 
index 0ed51e11c6ae10a2bf9ec610b77dc98f8798f358..0dce35f4a0f65e4213609f5ea4da9d4142cd76e9 100644 (file)
@@ -94,7 +94,7 @@ ENDIF(USE_XERCES)
 
 
 # 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)
 
@@ -120,6 +120,12 @@ SET( PRIMITIVE_SRCS
  ${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}
@@ -182,7 +188,7 @@ TARGET_LINK_LIBRARIES(${LIBRARY_NAME}
   sqlite3)  
 ENDIF(NOT USE_XERCES)
   
-  
 #----------------------------------------------------------------------------
 # INSTALLS LIBRARY
 FILE(GLOB HEADERS "*.h" "*.txx")
@@ -264,5 +270,5 @@ ENDIF(BUILD_DOXYGEN_DOC)
 INCLUDE_DIRECTORIES(
 #  ${PROJECT_BINARY_DIR}
   ${PROJECT_SOURCE_DIR}/src
-#  ${PROJECT_SOURCE_DIR}/src/CppSQLite3
+
   )