| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 | ## QtTesting#set(QtTesting_DEPENDS)if(CTK_USE_QTTESTING)  # Sanity checks  if(DEFINED QtTesting_DIR AND NOT EXISTS ${QtTesting_DIR})    message(FATAL_ERROR "QtTesting_DIR variable is defined but corresponds to non-existing directory")  endif()  set(proj QtTesting)  set(proj_DEPENDENCIES)    list(APPEND CTK_DEPENDENCIES ${proj})  set(QtTesting_DEPENDS ${proj})    set(${QtTesting_enabling_variable}_INCLUDE_DIRS QtTesting_INCLUDE_DIRS)  set(${QtTesting_enabling_variable}_FIND_PACKAGE_CMD QtTesting)    if(CTK_SUPERBUILD)    if(NOT DEFINED QtTesting_DIR)      set(revision_tag 7dbef1003157941e7315220f53cf4e17d78b5e28)      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}://paraview.org/QtTesting.git"                          GIT_TAG ${revision_tag})      endif()      # 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()      message(STATUS "Adding project:${proj}")      ExternalProject_Add(${proj}        SOURCE_DIR ${CMAKE_BINARY_DIR}/${proj}        BINARY_DIR ${proj}-build        PREFIX ${proj}${ep_suffix}        ${location_args}        CMAKE_GENERATOR ${gen}        UPDATE_COMMAND ""        CMAKE_CACHE_ARGS          ${ep_common_cache_args}          -DBUILD_SHARED_LIBS:BOOL=ON          -DQT_QMAKE_EXECUTABLE:FILEPATH=${QT_QMAKE_EXECUTABLE}        DEPENDS          ${proj_DEPENDENCIES}        )      set(QtTesting_INSTALL_DIR ${ep_install_dir})      set(QtTesting_DIR ${CMAKE_BINARY_DIR}/${proj}-build)      # Since QtTesting is statically build, there is not need to add its corresponding      # library output directory to CTK_EXTERNAL_LIBRARY_DIRS    else()      ctkMacroEmptyExternalproject(${proj} "${proj_DEPENDENCIES}")    endif()    list(APPEND CTK_SUPERBUILD_EP_VARS      QtTesting_INSTALL_DIR:PATH      QtTesting_DIR:PATH      )      endif()endif()
 |