/usr/lib/cmake/paraview/ParaViewExternalData.cmake is in paraview-dev 5.0.1+dfsg1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | get_filename_component(_ParaViewExternalData_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
include(${_ParaViewExternalData_DIR}/ExternalData.cmake)
if(NOT PARAVIEW_DATA_STORE)
# Select a default from the following.
set(PARAVIEW_DATA_STORE_DEFAULT "")
if(EXISTS "${ParaView_SOURCE_DIR}/.ExternalData/config/store")
# Configuration left by developer setup script.
file(STRINGS "${ParaView_SOURCE_DIR}/.ExternalData/config/store"
PARAVIEW_DATA_STORE_DEFAULT LIMIT_COUNT 1 LIMIT_INPUT 1024)
elseif(IS_DIRECTORY "${CMAKE_SOURCE_DIR}/../ParaViewExternalData")
# Adjacent directory created by user.
get_filename_component(PARAVIEW_DATA_STORE_DEFAULT
"${CMAKE_SOURCE_DIR}/../ParaViewExternalData" ABSOLUTE)
elseif(IS_DIRECTORY "${CMAKE_SOURCE_DIR}/../ExternalData")
# Generic adjacent directory created by user.
get_filename_component(PARAVIEW_DATA_STORE_DEFAULT
"${CMAKE_SOURCE_DIR}/../ExternalData" ABSOLUTE)
elseif(DEFINED "ENV{ParaViewExternalData_OBJECT_STORES}")
# The ParaViewExternalData environment variable.
file(TO_CMAKE_PATH "$ENV{ParaViewExternalData_OBJECT_STORES}" PARAVIEW_DATA_STORE_DEFAULT)
elseif(DEFINED "ENV{ExternalData_OBJECT_STORES}")
# Generic ExternalData environment variable.
file(TO_CMAKE_PATH "$ENV{ExternalData_OBJECT_STORES}" PARAVIEW_DATA_STORE_DEFAULT)
endif()
endif()
# Provide users with an option to select a local object store,
# starting with the above-selected default.
set(PARAVIEW_DATA_STORE "${PARAVIEW_DATA_STORE_DEFAULT}" CACHE PATH
"Local directory holding ExternalData objects in the layout %(algo)/%(hash).")
mark_as_advanced(PARAVIEW_DATA_STORE)
# Use a store in the build tree if none is otherwise configured.
if(NOT PARAVIEW_DATA_STORE)
if(ExternalData_OBJECT_STORES)
set(PARAVIEW_DATA_STORE "")
else()
set(PARAVIEW_DATA_STORE "${CMAKE_BINARY_DIR}/ExternalData/Objects")
file(MAKE_DIRECTORY "${PARAVIEW_DATA_STORE}")
endif()
endif()
# Tell ExternalData module about selected object stores.
list(APPEND ExternalData_OBJECT_STORES
# Store selected by ParaView-specific configuration above.
${PARAVIEW_DATA_STORE}
# Local data store populated by the ParaView pre-commit hook
"${CMAKE_SOURCE_DIR}/.ExternalData"
)
set(ExternalData_BINARY_ROOT ${CMAKE_BINARY_DIR}/ExternalData)
set(ExternalData_URL_TEMPLATES "" CACHE STRING
"Additional URL templates for the ExternalData CMake script to look for testing data. E.g.
file:///var/bigharddrive/%(algo)/%(hash)")
mark_as_advanced(ExternalData_URL_TEMPLATES)
list(APPEND ExternalData_URL_TEMPLATES
# Data published by MIDAS
# Provided by VTK
"http://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download&checksum=%(hash)&algorithm=%(algo)"
# Data published by developers using git-gitlab-push
"http://www.paraview.org/files/ExternalData/%(algo)/%(hash)"
)
# Tell ExternalData commands to transform raw files to content links.
# TODO: Condition this feature on presence of our pre-commit hook.
set(ExternalData_LINK_CONTENT MD5)
# Match series of the form <base>.<ext>, <base>_<n>.<ext> such that <base> may
# end in a (test) number that is not part of any series numbering.
set(ExternalData_SERIES_PARSE "()(\\.[^./]*)$")
set(ExternalData_SERIES_MATCH "(_[0-9]+)?")
if(DEFINED ENV{DASHBOARD_TEST_FROM_CTEST})
# Dashboard builds always need data.
set(PARAVIEW_DATA_EXCLUDE_FROM_ALL OFF)
endif()
if(NOT DEFINED PARAVIEW_DATA_EXCLUDE_FROM_ALL)
if(EXISTS "${ParaView_SOURCE_DIR}/.ExternalData/config/exclude-from-all")
# Configuration left by developer setup script.
file(STRINGS "${ParaView_SOURCE_DIR}/.ExternalData/config/exclude-from-all"
PARAVIEW_DATA_EXCLUDE_FROM_ALL_DEFAULT LIMIT_COUNT 1 LIMIT_INPUT 1024)
elseif(DEFINED "ENV{PARAVIEW_DATA_EXCLUDE_FROM_ALL}")
set(PARAVIEW_DATA_EXCLUDE_FROM_ALL_DEFAULT
"$ENV{PARAVIEW_DATA_EXCLUDE_FROM_ALL}")
else()
set(PARAVIEW_DATA_EXCLUDE_FROM_ALL_DEFAULT OFF)
endif()
set(PARAVIEW_DATA_EXCLUDE_FROM_ALL "${PARAVIEW_DATA_EXCLUDE_FROM_ALL_DEFAULT}"
CACHE BOOL "Exclude test data download from default 'all' target."
)
mark_as_advanced(PARAVIEW_DATA_EXCLUDE_FROM_ALL)
endif()
# Tell VTK to act as we do but not to warn when we warn.
set(VTK_DATA_EXCLUDE_FROM_ALL ${PARAVIEW_DATA_EXCLUDE_FROM_ALL})
set(VTK_DATA_EXCLUDE_FROM_ALL_NO_WARNING 1)
|