Prechádzať zdrojové kódy

ENH: Added external project CTKData

Available in the repository: git://github.com/commontk/CTKData.git

Data and baseline for the different test should be hosted here.

This external project is downloaded only if BUILD_TESTING is ON
Jean-Christophe Fillion-Robin 15 rokov pred
rodič
commit
17809fc620
2 zmenil súbory, kde vykonal 20 pridanie a 0 odobranie
  1. 18 0
      CMakeExternals/CTKData.cmake
  2. 2 0
      SuperBuild.cmake

+ 18 - 0
CMakeExternals/CTKData.cmake

@@ -0,0 +1,18 @@
+#
+# CTKData
+#
+SET(CTKData_DEPENDS)
+IF(BUILD_TESTING)
+  IF(NOT DEFINED CTKData_DIR)
+    SET(proj CTKData)
+  #   MESSAGE(STATUS "Adding project:${proj}")
+    SET(CTKData_DEPENDS ${proj})
+    ExternalProject_Add(${proj}
+        GIT_REPOSITORY git://github.com/commontk/CTKData.git
+        CONFIGURE_COMMAND ""
+        BUILD_COMMAND ""
+        INSTALL_COMMAND ""
+        )
+	  SET(CTKData_DIR ${ep_build_dir}/${proj})
+	ENDIF()
+ENDIF()

+ 2 - 0
SuperBuild.cmake

@@ -92,6 +92,7 @@ ctkMacroGetAllNonCTKTargetLibraries("${ALL_TARGET_LIBRARIES}" NON_CTK_DEPENDENCI
 # ExternalProjects
 #
 SET(external_projects
+  CTKData
   log4qt
   KWStyle
   PythonQt
@@ -121,6 +122,7 @@ ExternalProject_Add(${proj}
     # Mandatory dependencies
     ${log4qt_DEPENDS}
     # Optionnal dependencies
+    ${CTKData_DEPENDS}
     ${QtMobility_DEPENDS}
     ${kwstyle_DEPENDS}
     ${DCMTK_DEPENDS}