Commit 15081c61 authored by pieper's avatar pieper
Browse files

COMP: expose option to select git repository and tag to use with superbuild

git-svn-id: http://svn.slicer.org/Slicer4/trunk@15854 3bd1e089-480b-0410-8dfb-8563597acbee
parent 7e8685e9
...@@ -154,6 +154,14 @@ OPTION(Slicer_USE_OPENIGTLINK "Build Slicer with OpenIGTLink support." ON) ...@@ -154,6 +154,14 @@ OPTION(Slicer_USE_OPENIGTLINK "Build Slicer with OpenIGTLink support." ON)
OPTION(Slicer_USE_OPENCV "Build Slicer with OpenCV support." OFF) OPTION(Slicer_USE_OPENCV "Build Slicer with OpenCV support." OFF)
OPTION(Slicer_USE_CTKAPPLAUNCHER "Configure ctkAppLauncher." ON) OPTION(Slicer_USE_CTKAPPLAUNCHER "Configure ctkAppLauncher." ON)
MARK_AS_ADVANCED(Slicer_USE_CTKAPPLAUNCHER) MARK_AS_ADVANCED(Slicer_USE_CTKAPPLAUNCHER)
SET(Slicer_VTK_GIT_REPOSITORY "github.com/Slicer/VTK.git" CACHE STRING "repository from which to get VTK")
MARK_AS_ADVANCED(Slicer_VTK_GIT_REPOSITORY)
SET(Slicer_VTK_GIT_TAG "origin/slicer-4-0" CACHE STRING "VTK git tag to use")
MARK_AS_ADVANCED(Slicer_VTK_GIT_TAG)
SET(Slicer_ITK_GIT_REPOSITORY "github.com/Slicer/VTK.git" CACHE STRING "repository from which to get ITK")
MARK_AS_ADVANCED(Slicer_ITK_GIT_REPOSITORY)
SET(Slicer_ITK_GIT_TAG "origin/slicer-4-0" CACHE STRING "ITK git tag to use")
MARK_AS_ADVANCED(Slicer_VTK_GIT_TAG)
# Slicer implicitly uses Qt # Slicer implicitly uses Qt
SET(Slicer_USE_QT ON CACHE INTERNAL "Build Slicer with Qt") SET(Slicer_USE_QT ON CACHE INTERNAL "Build Slicer with Qt")
......
...@@ -12,8 +12,8 @@ set(proj Insight) ...@@ -12,8 +12,8 @@ set(proj Insight)
if(NOT DEFINED ITK_DIR) if(NOT DEFINED ITK_DIR)
# message(STATUS "Adding project:${proj}") # message(STATUS "Adding project:${proj}")
ExternalProject_Add(${proj} ExternalProject_Add(${proj}
GIT_REPOSITORY "${git_protocol}://github.com/Slicer/ITK.git" GIT_REPOSITORY "${git_protocol}://${Slicer_ITK_GIT_REPOSITORY}"
GIT_TAG "origin/slicer-4.0" GIT_TAG ${Slicer_ITK_GIT_TAG}
SOURCE_DIR ${proj} SOURCE_DIR ${proj}
BINARY_DIR ${proj}-build BINARY_DIR ${proj}-build
CMAKE_GENERATOR ${gen} CMAKE_GENERATOR ${gen}
......
...@@ -131,8 +131,8 @@ if(NOT DEFINED VTK_DIR OR NOT DEFINED VTK_SOURCE_DIR) ...@@ -131,8 +131,8 @@ if(NOT DEFINED VTK_DIR OR NOT DEFINED VTK_SOURCE_DIR)
ExternalProject_Add(${proj} ExternalProject_Add(${proj}
SOURCE_DIR ${CMAKE_BINARY_DIR}/${proj} SOURCE_DIR ${CMAKE_BINARY_DIR}/${proj}
BINARY_DIR ${proj}-build BINARY_DIR ${proj}-build
GIT_REPOSITORY "${git_protocol}://github.com/Slicer/VTK.git" GIT_REPOSITORY "${git_protocol}://${Slicer_VTK_GIT_REPOSITORY}"
GIT_TAG "origin/slicer-4.0" GIT_TAG ${Slicer_VTK_GIT_TAG}
CMAKE_GENERATOR ${gen} CMAKE_GENERATOR ${gen}
CMAKE_ARGS CMAKE_ARGS
${ep_common_args} ${ep_common_args}
......
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