forked from Kitware/VTK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvtkTesting.cmake
28 lines (25 loc) · 872 Bytes
/
vtkTesting.cmake
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
set(VTK_BUILD_TESTING "OFF"
CACHE STRING "Build module testing directories")
set_property(CACHE VTK_BUILD_TESTING
PROPERTY
STRINGS "ON;OFF;WANT")
if (NOT EXISTS "${VTK_SOURCE_DIR}/.ExternalData/README.rst")
# This file is always present in version-controlled source trees
# so we must have been extracted from a source tarball with no
# data objects needed for testing. Turn off tests by default
# since enabling them requires network access or manual data
# store configuration.
set(VTK_BUILD_TESTING OFF)
endif ()
if (VTK_BUILD_TESTING)
include(vtkExternalData)
include(CTest)
set_property(CACHE BUILD_TESTING
PROPERTY
TYPE INTERNAL)
set(BUILD_TESTING ON)
else ()
set(BUILD_TESTING OFF)
endif ()
# Provide an option for tests requiring "large" input data
option(VTK_USE_LARGE_DATA "Enable tests requiring \"large\" data" OFF)