forked from girder/girder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
30 lines (22 loc) · 726 Bytes
/
CMakeLists.txt
File metadata and controls
30 lines (22 loc) · 726 Bytes
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
cmake_minimum_required(VERSION 2.8.6)
project(Girder)
include(CTest)
enable_testing()
find_program(PYTHON_EXECUTABLE python)
option(PYTHON_STYLE_TESTS "Run Python style tests with pep8" ON)
option(PYTHON_COVERAGE "Run tests with coverage.py" OFF)
option(JAVASCRIPT_STYLE_TESTS "Run Javascript style tests with jslint" ON)
if(PYTHON_COVERAGE)
find_program(PYTHON_COVERAGE_EXECUTABLE coverage)
endif()
if(PYTHON_STYLE_TESTS)
find_program(PEP8_EXECUTABLE pep8)
endif()
if(JAVASCRIPT_STYLE_TESTS)
find_program(JSHINT_EXECUTABLE jshint ${PROJECT_SOURCE_DIR}/node_modules/jshint/bin)
endif()
if(BUILD_TESTING)
include(tests/PythonTests.cmake)
include(tests/JavascriptTests.cmake)
add_subdirectory(tests)
endif()