+#
+# Test CMake version
+#
+CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
+#MARK_AS_ADVANCED( FORCE CMAKE_BACKWARDS_COMPATIBILITY )
+
+# for CMake 2.6 corrected behaviour (see "cmake --help-policy CMP0003")
+IF(COMMAND cmake_policy AND ${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4)
+ CMAKE_POLICY(SET CMP0003 NEW)
+ CMAKE_POLICY(SET CMP0005 NEW)
+ENDIF(COMMAND cmake_policy AND ${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4)
+
+#if(COMMAND cmake_policy)
+ # UNCOMMENT the 3 lines 'cmake_policy(...
+ # If you are using cmake 2.6
+ # We can test it automatically, no JP ?
+ #cmake_policy(SET CMP0000 OLD)
+ #cmake_policy(SET CMP0005 NEW)
+ #cmake_policy(SET CMP0003 NEW)
+ # endif(COMMAND cmake_policy)
+
#-----------------------------------------------------------------------------
PROJECT(BBTK)
#-----------------------------------------------------------------------------
-#-----------------------------------------------------------------------------
-# BBTK version number
-SET(BBTK_MAJOR_VERSION 0)
-SET(BBTK_MINOR_VERSION 5)
-SET(BBTK_BUILD_VERSION 0)
-SET(BBTK_VERSION
- "${BBTK_MAJOR_VERSION}.${BBTK_MINOR_VERSION}.${BBTK_BUILD_VERSION}")
-# Now in bbtkConfigure.h file (cf. core/src)
-#ADD_DEFINITIONS( -DBBTK_VERSION=${BBTK_VERSION} )
-#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Set global configuration of the toolkit
-INCLUDE(cmake/BBTKGlobalConfiguration.cmake)
+INCLUDE(kernel/cmake/BBTKRootCMakeLists.cmake)
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
-# The "standard" packages
+# The "core" packages
SUBDIRS(packages)
#-----------------------------------------------------------------------------
+