#
# Test CMake version
-#
-
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
#MARK_AS_ADVANCED( FORCE CMAKE_BACKWARDS_COMPATIBILITY )
CMAKE_POLICY(SET CMP0011 NEW)
ENDIF(COMMAND cmake_policy AND ${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4)
-
+###################################
PROJECT(creaImageIO)
+###################################
+#==================================
+# The project version
SET(PROJECT_MAJOR_VERSION 0)
SET(PROJECT_MINOR_VERSION 2)
SET(PROJECT_BUILD_VERSION 5)
SET(CREA_VERBOSE_CMAKE TRUE)
+#==================================
+# Find crea (mandatory, to use macros)
FIND_PACKAGE(crea REQUIRED)
IF (crea_FOUND)
INCLUDE(${crea_USE_FILE})
-
ENDIF(crea_FOUND)
+#==================================
+#==================================
+# Do not allow to build inside the source tree
+CREA_PREVENT_IN_SOURCE_BUILD()
+#==================================
-message("link directory ${GDCM_INCLUDE_DIR}")
+message("link directory ${GDCM_INCLUDE_DIR} ?!? ")
+# For boost 1.46 troubles... // JPR.
+add_definitions(-DBOOST_FILESYSTEM_VERSION=2)
SET(USE_GDCM_VTK ON)
CREA_DEFINE(BUILD_PACS)
ENDIF(BUILD_CREA_PACS)
-#
+#==================================
+# Subdirs
+
ADD_SUBDIRECTORY(appli)
ADD_SUBDIRECTORY(bbtk)
ADD_SUBDIRECTORY(tests)
endif()
ADD_SUBDIRECTORY(install)
+#==================================
ENABLE_TESTING()