forked from acil-bwh/ChestImagingPlatform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·39 lines (33 loc) · 1.84 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
cmake_minimum_required(VERSION 2.8.9) #2.8.9 needed for ExternalProject Simplification
cmake_policy(VERSION 2.8.9)
set(PRIMARY_PROJECT_NAME CIP)
project(${PRIMARY_PROJECT_NAME})
#-----------------------------------------------------------------------------
# Superbuild Option - Enabled by default
# Phase I: ${PRIMARY_PROJECT_NAME}_SUPERBUILD is set to ON, and the
# supporting packages defined in "SuperBuild.cmake"
# are built. The last package in "SuperBuild.cmake"
# to be built is a recursive call to this
# file with ${PRIMARY_PROJECT_NAME}_SUPERBUILD explicitly
# set to "OFF" to initiate Phase II
#
# Phase II: Build the ${PRIMARY_PROJECT_NAME}, referencing the support
# packages built in Phase I.
#-----------------------------------------------------------------------------
option(${PRIMARY_PROJECT_NAME}_SUPERBUILD "Build ${PRIMARY_PROJECT_NAME} and the projects it depends on via SuperBuild.cmake." ON)
#mark_as_advanced(${PRIMARY_PROJECT_NAME}_SUPERBUILD)
#-----------------------------------------------------------------------------
# Superbuild script
#-----------------------------------------------------------------------------
message("----------- ENTRY ------------")
if(${PRIMARY_PROJECT_NAME}_SUPERBUILD)
message("Configuring Superbuild...")
#project(SuperBuild_${PRIMARY_PROJECT_NAME}) # note the change of project name
include("${CMAKE_CURRENT_SOURCE_DIR}/SuperBuild.cmake")
message("----------- DONE ------------")
return()
endif()
message("----------- PHASE 2 ------------")
message("Configuring ${PRIMARY_PROJECT_NAME}...")
include("${CMAKE_CURRENT_SOURCE_DIR}/${PRIMARY_PROJECT_NAME}.cmake")
message("----------- DONE ------------")