forked from mariadeprez/irtk-simple
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
41 lines (30 loc) · 1.26 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
cmake_minimum_required(VERSION 2.6)
if(COMMAND cmake_policy)
# policy settings ...
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
PROJECT(IRTK)
OPTION(USE_VXL "Use VXL library instead of Numerical Recipes" OFF)
IF (USE_VXL)
SUBDIRS(vxl)
INCLUDE_DIRECTORIES(${IRTK_SOURCE_DIR}/vxl/core ${IRTK_SOURCE_DIR}/vxl/vcl)
ADD_DEFINITIONS(-DUSE_VXL)
ELSE (USE_VXL)
SUBDIRS(recipes/src)
ENDIF (USE_VXL)
OPTION(BUILD_WITH_TBB "Use TBB library for multithreading support" ON)
SUBDIRS(common++/src geometry++/src image++/src contrib++/src applications packages documentation )
INCLUDE(${IRTK_SOURCE_DIR}/config/IRTKInclude.cmake)
SET(EXECUTABLE_OUTPUT_PATH ${IRTK_BINARY_DIR}/bin CACHE STRING
"Where to put the executables")
SET(LIBRARY_OUTPUT_PATH ${IRTK_BINARY_DIR}/lib CACHE STRING
"Where to put the libraries")
IF (BUILD_WITH_NIFTI)
SUBDIRS(nifti)
ENDIF (BUILD_WITH_NIFTI)
CONFIGURE_FILE(${IRTK_SOURCE_DIR}/config/IRTKInclude.cmake
${IRTK_BINARY_DIR}/lib/IRTKInclude.cmake)
CONFIGURE_FILE(${IRTK_SOURCE_DIR}/InstallerScripts/irtkInstaller.sh
${IRTK_BINARY_DIR}/bin/irtkInstaller.sh)
EXEC_PROGRAM(chmod ${IRTK_BINARY_DIR}/bin ARGS +x;irtkInstaller.sh)
INCLUDE(${IRTK_SOURCE_DIR}/config/IRTKGenerateConfigFile.cmake)