| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 | ## CTKData#set(proj CTKData)set(${proj}_DEPENDENCIES "")ExternalProject_Include_Dependencies(${proj}  PROJECT_VAR proj  DEPENDS_VAR ${proj}_DEPENDENCIES  EP_ARGS_VAR ${proj}_EXTERNAL_PROJECT_ARGS  USE_SYSTEM_VAR ${CMAKE_PROJECT_NAME}_USE_SYSTEM_${proj}  )if(${CMAKE_PROJECT_NAME}_USE_SYSTEM_${proj})  message(FATAL_ERROR "Enabling ${CMAKE_PROJECT_NAME}_USE_SYSTEM_${proj} is not supported !")endif()# Sanity checksif(DEFINED CTKData_DIR AND NOT EXISTS ${CTKData_DIR})  message(FATAL_ERROR "CTKData_DIR variable is defined but corresponds to non-existing directory")endif()if(NOT DEFINED CTKData_DIR)  set(revision_tag cc07f1ff391b7828459c)  if(${proj}_REVISION_TAG)    set(revision_tag ${${proj}_REVISION_TAG})  endif()  set(location_args )  if(${proj}_URL)    set(location_args URL ${${proj}_URL})  elseif(${proj}_GIT_REPOSITORY)    set(location_args GIT_REPOSITORY ${${proj}_GIT_REPOSITORY}                      GIT_TAG ${revision_tag})  else()    set(location_args GIT_REPOSITORY "${git_protocol}://github.com/commontk/CTKData.git"                      GIT_TAG ${revision_tag})  endif()  ExternalProject_Add(${proj}    ${${proj}_EXTERNAL_PROJECT_ARGS}    SOURCE_DIR ${CMAKE_BINARY_DIR}/${proj}    BINARY_DIR ${proj}-build    PREFIX ${proj}${ep_suffix}    ${location_args}    CONFIGURE_COMMAND ""    BUILD_COMMAND ""    INSTALL_COMMAND ""    DEPENDS      ${${proj}_DEPENDENCIES}    )  set(CTKData_DIR ${CMAKE_BINARY_DIR}/${proj})else()  ExternalProject_Add_Empty(${proj} DEPENDS ${${proj}_DEPENDENCIES})endif()mark_as_superbuild(  VARS CTKData_DIR:PATH  LABELS "FIND_PACKAGE"  )
 |