From 8a1e18abc039b3abea199a6152d9822523fef9ad Mon Sep 17 00:00:00 2001 From: Agata Krason Date: Thu, 25 Jul 2013 09:25:20 +0200 Subject: [PATCH] Add to VV superbuild gdcm option. --- superbuild/CMakeLists.txt | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/superbuild/CMakeLists.txt b/superbuild/CMakeLists.txt index df23773..7e29ad5 100644 --- a/superbuild/CMakeLists.txt +++ b/superbuild/CMakeLists.txt @@ -103,13 +103,37 @@ ExternalProject_Add( SET(VTK_DIR ${build_prefix}/VTK) #========================================================= +#========================================================= +# GDCM + ExternalProject_Add( + GDCM + SOURCE_DIR ${source_prefix}/gdcm + GIT_REPOSITORY git://git.code.sf.net/p/gdcm/gdcm + GIT_TAG v2.2.3 + INSTALL_COMMAND "" + CMAKE_ARGS + -DQT_QMAKE_EXECUTABLE:FILEPATH=${qmake_executable} + -DCMAKE_C_FLAGS_DEBUG:STRING=${CMAKE_C_FLAGS_DEBUG} + -DCMAKE_C_FLAGS_MINSIZEREL:STRING=${CMAKE_C_FLAGS_MINSIZEREL} + -DCMAKE_C_FLAGS_RELEASE:STRING=${CMAKE_C_FLAGS_RELEASE} + -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING=${CMAKE_C_FLAGS_RELWITHDEBINFO} + -DCMAKE_CXX_FLAGS_DEBUG:STRING=${CMAKE_CXX_FLAGS_DEBUG} + -DCMAKE_CXX_FLAGS_MINSIZEREL:STRING=${CMAKE_CXX_FLAGS_MINSIZEREL} + -DCMAKE_CXX_FLAGS_RELEASE:STRING=${CMAKE_CXX_FLAGS_RELEASE} + -DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=${CMAKE_CXX_FLAGS_RELWITHDEBINFO} + -DCMAKE_INSTALL_PREFIX:PATH=${INSTALL_PREFIX} + -DCMAKE_BUILD_TYPE:STRING=${build_type} +) +SET(GDCM_DIR ${build_prefix}/GDCM) +#========================================================= + #========================================================= # ITK ExternalProject_Add( ITK SOURCE_DIR ${source_prefix}/itk GIT_REPOSITORY git://itk.org/ITK.git - GIT_TAG v4.2.0 + GIT_TAG v4.4.0 INSTALL_COMMAND "" CMAKE_ARGS -DCMAKE_C_FLAGS_DEBUG:STRING=${CMAKE_C_FLAGS_DEBUG} @@ -148,12 +172,13 @@ endif(MSVC) ExternalProject_Add( VV - DEPENDS QT VTK ITK + DEPENDS QT VTK ITK GDCM SOURCE_DIR ${source_prefix}/vv GIT_REPOSITORY git://git.creatis.insa-lyon.fr/clitk INSTALL_COMMAND ${MAKE_COMMAND} package CMAKE_ARGS -DQT_QMAKE_EXECUTABLE:FILEPATH=${qmake_executable} + -DGDCM_DIR:PATH=${GDCM_DIR} -DITK_DIR:PATH=${ITK_DIR} -DVTK_DIR:PATH=${VTK_DIR} -DCMAKE_C_FLAGS_DEBUG:STRING=${CMAKE_C_FLAGS_DEBUG} -- 2.47.1