-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
28 lines (21 loc) · 848 Bytes
/
CMakeLists.txt
File metadata and controls
28 lines (21 loc) · 848 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
cmake_minimum_required(VERSION 3.24)
project(mathvizanimator VERSION 0.0.1 LANGUAGES CXX C)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
message("Run Code Coverage: ${RUN_CODE_COVERAGE}")
include(presets)
enable_testing(true)
add_subdirectory(libs)
add_subdirectory(app)
if(${BUILD_DOCUMENTATION})
add_subdirectory(docs)
endif()
get_all_cmake_tests(TEST_TARGETS ${CMAKE_CURRENT_LIST_DIR})
if(CMAKE_COMPILER_IS_GNUCC AND RUN_CODE_COVERAGE)
set(GCOVR_ADDITIONAL_ARGS "--exclude-unreachable-branches;--exclude-throw-branches")
setup_target_for_coverage_gcovr_xml(
NAME mva_test_coverage
EXECUTABLE ctest --schedule-random -j 4 --output-on-failure
DEPENDENCIES ${TEST_TARGETS}
EXCLUDE libs/mva_gui/tests/* libs/mva_svg/tests/* libs/mva_workflow/tests/* app/tests/*
)
endif()