-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
49 lines (36 loc) · 1.39 KB
/
CMakeLists.txt
File metadata and controls
49 lines (36 loc) · 1.39 KB
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
42
43
44
45
46
47
48
49
project(Covalic)
#-----------------------------------------------------------------------------
# Require CMake 2.8 for the superbuild functionality
cmake_minimum_required(VERSION 2.8)
option( BUILD_DOCUMENTATION "Generate Documentation for COVALIC" NO )
#-----------------------------------------------------------------------------
# ITK Setup
option( USE_SYSTEM_ITK
"Exclude ITK from SuperBuild and use an existing build instead." OFF )
if( USE_SYSTEM_ITK )
find_package( ITK REQUIRED )
include( ${ITK_USE_FILE} )
endif( USE_SYSTEM_ITK )
#-----------------------------------------------------------------------------
# ITKv4 Switch
option( Covalic_USE_ITKV4
"Compile with ITKv4."
ON )
mark_as_advanced( Covalic_USE_ITKV4 )
#-----------------------------------------------------------------------------
# Superbuild setup
option( Covalic_USE_SUPERBUILD
"Build Covalic and the projects it depends on via SuperBuild.cmake." ON )
if( Covalic_USE_SUPERBUILD )
include( "${CMAKE_CURRENT_SOURCE_DIR}/CMake/SuperBuild.cmake" )
return()
else( Covalic_USE_SUPERBUILD )
find_package( ITK REQUIRED )
include( ${ITK_USE_FILE} )
find_package( GenerateCLP REQUIRED )
include( ${GenerateCLP_USE_FILE} )
endif( Covalic_USE_SUPERBUILD )
include( ${CMAKE_CURRENT_SOURCE_DIR}/CMake/Slicer3PluginsMacros.cmake )
add_subdirectory( Documentation )
add_subdirectory( Code )
add_subdirectory( Utilities )