1 #=========================================================
2 # CLITK = Command Line ITK
4 cmake_minimum_required(VERSION 2.8)
5 cmake_policy(VERSION 2.8)
6 if(COMMAND cmake_policy)
7 cmake_policy(SET CMP0003 NEW)
8 endif(COMMAND cmake_policy)
9 IF(NOT DEFINED CLITK_SOURCE_DIR)
10 SET(CLITK_SOURCE_DIR ${PROJECT_SOURCE_DIR})
11 ENDIF(NOT DEFINED CLITK_SOURCE_DIR)
12 #=========================================================
14 SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
17 SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj" )
18 SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /bigobj" )
21 #=========================================================
22 INCLUDE(${CLITK_SOURCE_DIR}/cmake/common.cmake)
23 INCLUDE(${CLITK_SOURCE_DIR}/cmake/dependencies.cmake)
24 INCLUDE(${CLITK_SOURCE_DIR}/cmake/build_opt.cmake)
25 #=========================================================
26 #=========================================================
28 # Select what is compiled
29 ADD_SUBDIRECTORY(${CLITK_SOURCE_DIR}/common ${PROJECT_BINARY_DIR}/common)
30 ADD_SUBDIRECTORY(${CLITK_SOURCE_DIR}/tools ${PROJECT_BINARY_DIR}/tools)
31 ADD_SUBDIRECTORY(${CLITK_SOURCE_DIR}/segmentation ${PROJECT_BINARY_DIR}/segmentation)
32 ADD_SUBDIRECTORY(${CLITK_SOURCE_DIR}/registration ${PROJECT_BINARY_DIR}/registration)