| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 | ## XIP#ctkMacroShouldAddExternalproject(XIP_LIBRARIES add_project)if(${add_project})  # Sanity checks  if(DEFINED XIP_DIR AND NOT EXISTS ${XIP_DIR})    message(FATAL_ERROR "XIP_DIR variable is defined but corresponds to non-existing directory")  endif()  set(XIP_enabling_variable XIP_LIBRARIES)  set(proj XIP)  set(proj_DEPENDENCIES)  list(APPEND CTK_DEPENDENCIES ${proj})  set(${XIP_enabling_variable}_INCLUDE_DIRS XIP_LIBRARY_DIRS)  set(${XIP_enabling_variable}_INCLUDE_DIRS XIP_INCLUDE_DIRS)  set(${XIP_enabling_variable}_FIND_PACKAGE_CMD XIP)  if(CTK_SUPERBUILD)    if(NOT DEFINED XIP_DIR)          set(location_args )      if(${proj}_URL)        set(location_args URL ${${proj}_URL})      else()        set(location_args SVN_REPOSITORY "https://collab01a.scr.siemens.com/svn/xip/releases/latest"                          SVN_USERNAME "anonymous")      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}        INSTALL_COMMAND ""        CMAKE_GENERATOR ${gen}        CMAKE_CACHE_ARGS          ${ep_common_cache_args}          -DHAS_VTK:BOOL=OFF          -DHAS_ITK:BOOL=OFF        )      set(XIP_DIR ${CMAKE_BINARY_DIR}/${proj}-build)    else()      ctkMacroEmptyExternalproject(${proj} "${proj_DEPENDENCIES}")    endif()    list(APPEND CTK_SUPERBUILD_EP_VARS XIP_DIR:PATH)  endif()endif()
 |