#-------------------------------------------- # This is the root I2TK CMakeLists file. CMAKE_MINIMUM_REQUIRED(VERSION 1.6) PROJECT(I2TK) #-------------------------------------------- # Find ITK in the system INCLUDE (${CMAKE_ROOT}/Modules/FindITK.cmake) IF (USE_ITK_FILE) INCLUDE(${USE_ITK_FILE}) ENDIF(USE_ITK_FILE) #-------------------------------------------- # Output directories SET (LIBRARY_OUTPUT_PATH ${I2TK_BINARY_DIR}/bin CACHE PATH "Single output directory for building all libraries.") SET (EXECUTABLE_OUTPUT_PATH ${I2TK_BINARY_DIR}/bin CACHE PATH "Single output directory for building all executables.") MARK_AS_ADVANCED(LIBRARY_OUTPUT_PATH EXECUTABLE_OUTPUT_PATH) SET(I2TK_LIBRARY_PATH "${LIBRARY_OUTPUT_PATH}") SET(I2TK_EXECUTABLE_PATH "${EXECUTABLE_OUTPUT_PATH}") # SET(CXX_TEST_PATH ${EXECUTABLE_OUTPUT_PATH}) #----------------------------------------------------------------------------- # The entire I2TK tree should use the same include path # Create the list of include directories needed for ITK header files. INCLUDE(${I2TK_SOURCE_DIR}/i2tkIncludeDirectories.cmake) # This should be the only INCLUDE_DIRECTORIES command in the entire # tree, except for the Utilities and Wrapping directories. We need to # do this in one place to make sure the order is correct. INCLUDE_DIRECTORIES( ${I2TK_INCLUDE_DIRS_BUILD_TREE} ${I2TK_INCLUDE_DIRS_BUILD_TREE_CXX} ) #----------------------------------------------------------------------------- # Dispatch the build into the proper subdirectories. SUBDIRS( Utilities Code ) #-----------following commented part is for testing purpose #INCLUDE(${CMAKE_ROOT}/Modules/Dart.cmake) #IF (BUILD_TESTING) # CONFIGURE_FILE(${I2TK_SOURCE_DIR}/I2TKLogo.gif # ${I2TK_BINARY_DIR}/Testing/HTML/TestingResults/Icons/Logo.gif # COPYONLY IMMEDIATE) # IF (EXECUTABLE_OUTPUT_PATH) # SET (CXX_TEST_PATH ${EXECUTABLE_OUTPUT_PATH}) # ELSE (EXECUTABLE_OUTPUT_PATH) # SET (CXX_TEST_PATH .) # ENDIF (EXECUTABLE_OUTPUT_PATH) # SUBDIRS(Testing) #ENDIF (BUILD_TESTING) #----------------------------------------------------------------------------- # Help other projects use ITK. # Copy the UseITK.cmake file to the binary tree for backward compatability. CONFIGURE_FILE(${I2TK_SOURCE_DIR}/UseI2TK.cmake.in ${I2TK_BINARY_DIR}/UseI2TK.cmake COPYONLY IMMEDIATE) # Create the I2TKConfig.cmake file containing the ITK configuration. INCLUDE (${I2TK_SOURCE_DIR}/i2tkGenerateI2TKConfig.cmake)