forked from girder/girder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
29 lines (21 loc) · 827 Bytes
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 2.8.6)
project(Girder NONE)
# Address warning with Ninja generator and ExternalData
if(POLICY CMP0058)
cmake_policy(SET CMP0058 NEW)
endif()
include(CTest)
include(CMakeParseArguments)
set(PYTHON_VERSION "3.6" CACHE STRING "Python version used for testing")
find_package(PythonInterp ${PYTHON_VERSION} REQUIRED)
option(BUILD_JAVASCRIPT_TESTS "Build Javascript tests" ON)
option(RUN_CORE_TESTS "Whether to run the core tests" ON)
set(TEST_PLUGINS "" CACHE STRING "List of plugins to test. Leave empty to test all plugins")
find_program(PYTHON_COVERAGE_EXECUTABLE NAMES coverage python-coverage)
if(BUILD_TESTING)
include(tests/TestData.cmake)
include(tests/TestCommon.cmake)
include(tests/PythonTests.cmake)
include(tests/JavascriptTests.cmake)
add_subdirectory(tests)
endif()