Commit 95cc160b authored by jcfr's avatar jcfr
Browse files

COMP: Facilitate re-use of external project by defaulting git_protocol variable.

* If not already defined, the variable git_protocol will be set to "git".

git-svn-id: http://svn.slicer.org/Slicer4/trunk@19673 3bd1e089-480b-0410-8dfb-8563597acbee
parent a8e9d24d
......@@ -35,6 +35,10 @@ else()
set(GIT_TAG "857d38227c1db72c6d4ba3d9396f4593020c5478")
endif()
if(NOT DEFINED git_protocol)
set(git_protocol "git")
endif()
ExternalProject_Add(${proj}
GIT_REPOSITORY "${git_protocol}://github.com/BRAINSia/BRAINSStandAlone.git"
GIT_TAG "${GIT_TAG}"
......
......@@ -22,6 +22,10 @@ if(APPLE)
-DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET})
endif()
if(NOT DEFINED git_protocol)
set(git_protocol "git")
endif()
#message(STATUS "${__indent}Adding project ${proj}")
ExternalProject_Add(${proj}
GIT_REPOSITORY "${git_protocol}://batchmake.org/BatchMake.git"
......
......@@ -51,6 +51,10 @@ if(NOT DEFINED CTK_DIR)
)
endif()
if(NOT DEFINED git_protocol)
set(git_protocol "git")
endif()
ExternalProject_Add(${proj}
GIT_REPOSITORY "${git_protocol}://github.com/commontk/CTK.git"
GIT_TAG "edf82958ad3b1aab41be412c2e7cde0055a920df"
......
......@@ -20,6 +20,11 @@ set(proj ChangeTrackerPy)
if(NOT DEFINED ChangeTrackerPy_SOURCE_DIR)
#message(STATUS "${__indent}Adding project ${proj}")
if(NOT DEFINED git_protocol)
set(git_protocol "git")
endif()
ExternalProject_Add(${proj}
GIT_REPOSITORY "${git_protocol}://github.com/fedorov/ChangeTrackerPy.git"
GIT_TAG "68b70e15ada3b46742ab3374a62e3eb02a5d101a"
......
......@@ -35,6 +35,10 @@ if(NOT DEFINED ITK_DIR)
mark_as_advanced(${CMAKE_PROJECT_NAME}_${proj}_GIT_REPOSITORY ${CMAKE_PROJECT_NAME}_${proj}_GIT_TAG)
if(NOT DEFINED git_protocol)
set(git_protocol "git")
endif()
ExternalProject_Add(${proj}
GIT_REPOSITORY "${git_protocol}://${${CMAKE_PROJECT_NAME}_${proj}_GIT_REPOSITORY}"
GIT_TAG ${${CMAKE_PROJECT_NAME}_${proj}_GIT_TAG}
......
......@@ -61,6 +61,11 @@ if(NOT DEFINED ITK_DIR)
set(ITKv4_REPOSITORY git://itk.org/ITK.git)
#set(ITKv4_GIT_TAG v4.1.0)
set(ITKv4_GIT_TAG ae54e7089a7b12e51586519735c1d6f0af05021a) ## 2012-03-17 The v4.1.0 branch + ITKv4Registration patch set not needed by Slicer proper, but needed by extensions
if(NOT DEFINED git_protocol)
set(git_protocol "git")
endif()
ExternalProject_Add(${proj}
GIT_REPOSITORY ${ITKv4_REPOSITORY}
GIT_TAG ${ITKv4_GIT_TAG}
......
......@@ -20,6 +20,11 @@ set(proj MultiVolumeExplorer)
if(NOT DEFINED MultiVolumeExplorer_SOURCE_DIR)
#message(STATUS "${__indent}Adding project ${proj}")
if(NOT DEFINED git_protocol)
set(git_protocol "git")
endif()
ExternalProject_Add(${proj}
GIT_REPOSITORY "${git_protocol}://github.com/fedorov/MultiVolumeExplorer.git"
GIT_TAG "6bb732ada5155d9a6f87e9c346f6a8704e414537"
......
......@@ -19,6 +19,11 @@ set(proj MultiVolumeImporter)
if(NOT DEFINED MultiVolumeImporter_SOURCE_DIR)
#message(STATUS "${__indent}Adding project ${proj}")
if(NOT DEFINED git_protocol)
set(git_protocol "git")
endif()
ExternalProject_Add(${proj}
GIT_REPOSITORY "${git_protocol}://github.com/fedorov/MultiVolumeImporter.git"
GIT_TAG "6e972073bad99cb9e51629ca3d4dbc2c1ce85589"
......
......@@ -30,6 +30,10 @@ if(NOT DEFINED SlicerExecutionModel_DIR)
-DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET})
endif()
if(NOT DEFINED git_protocol)
set(git_protocol "git")
endif()
ExternalProject_Add(${proj}
GIT_REPOSITORY "${git_protocol}://github.com/Slicer/SlicerExecutionModel.git"
GIT_TAG "9b7cfb5f3e7dc6c7efaa0cfc0a21c2d4dcc834ec"
......
......@@ -19,6 +19,11 @@ set(proj SlicerWebGLExport)
if(NOT DEFINED SlicerWebGLExport_SOURCE_DIR)
#message(STATUS "${__indent}Adding project ${proj}")
if(NOT DEFINED git_protocol)
set(git_protocol "git")
endif()
ExternalProject_Add(${proj}
GIT_REPOSITORY "${git_protocol}://github.com/xtk/SlicerWebGLExport.git"
GIT_TAG "9e6b567f1ed6c005fb91a815ed00c20d2e13df78"
......
......@@ -128,6 +128,10 @@ if(NOT DEFINED VTK_DIR OR NOT DEFINED VTK_SOURCE_DIR)
mark_as_advanced(${CMAKE_PROJECT_NAME}_${proj}_GIT_REPOSITORY ${CMAKE_PROJECT_NAME}_${proj}_GIT_TAG)
if(NOT DEFINED git_protocol)
set(git_protocol "git")
endif()
ExternalProject_Add(${proj}
SOURCE_DIR ${CMAKE_BINARY_DIR}/${proj}
BINARY_DIR ${proj}-build
......
......@@ -18,17 +18,22 @@ set(qCDashAPI_DEPENDENCIES "")
SlicerMacroCheckExternalProjectDependency(qCDashAPI)
set(proj qCDashAPI)
# Set CMake OSX variable to pass down the external project
set(CMAKE_OSX_EXTERNAL_PROJECT_ARGS)
if(APPLE)
list(APPEND CMAKE_OSX_EXTERNAL_PROJECT_ARGS
-DCMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES}
-DCMAKE_OSX_SYSROOT=${CMAKE_OSX_SYSROOT}
-DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET})
endif()
if(NOT DEFINED qCDashAPI_DIR)
#message(STATUS "${__indent}Adding project ${proj}")
# Set CMake OSX variable to pass down the external project
set(CMAKE_OSX_EXTERNAL_PROJECT_ARGS)
if(APPLE)
list(APPEND CMAKE_OSX_EXTERNAL_PROJECT_ARGS
-DCMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES}
-DCMAKE_OSX_SYSROOT=${CMAKE_OSX_SYSROOT}
-DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET})
endif()
if(NOT DEFINED git_protocol)
set(git_protocol "git")
endif()
ExternalProject_Add(${proj}
GIT_REPOSITORY "${git_protocol}://github.com/jcfr/qCDashAPI.git"
GIT_TAG "9cd19663c1884b28ba4ad4153b290bf9da5500ab"
......
......@@ -18,17 +18,22 @@ set(qMidasAPI_DEPENDENCIES "")
SlicerMacroCheckExternalProjectDependency(qMidasAPI)
set(proj qMidasAPI)
# Set CMake OSX variable to pass down the external project
set(CMAKE_OSX_EXTERNAL_PROJECT_ARGS)
if(APPLE)
list(APPEND CMAKE_OSX_EXTERNAL_PROJECT_ARGS
-DCMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES}
-DCMAKE_OSX_SYSROOT=${CMAKE_OSX_SYSROOT}
-DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET})
endif()
if(NOT DEFINED qMidasAPI_DIR)
#message(STATUS "${__indent}Adding project ${proj}")
# Set CMake OSX variable to pass down the external project
set(CMAKE_OSX_EXTERNAL_PROJECT_ARGS)
if(APPLE)
list(APPEND CMAKE_OSX_EXTERNAL_PROJECT_ARGS
-DCMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES}
-DCMAKE_OSX_SYSROOT=${CMAKE_OSX_SYSROOT}
-DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET})
endif()
if(NOT DEFINED git_protocol)
set(git_protocol "git")
endif()
ExternalProject_Add(${proj}
GIT_REPOSITORY "${git_protocol}://github.com/Slicer/qMidasAPI.git"
GIT_TAG "4c7c25d8e0284dea509914fad16e0403ea3e96cb"
......
......@@ -31,6 +31,10 @@ if(NOT DEFINED zlib_DIR)
-DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET})
endif()
if(NOT DEFINED git_protocol)
set(git_protocol "git")
endif()
ExternalProject_Add(${proj}
GIT_REPOSITORY "${git_protocol}://github.com/commontk/zlib.git"
GIT_TAG "66a753054b356da85e1838a081aa94287226823e"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment