Debian Codegraph @

tests/cmake_fetch_content2/CMakeLists.txt

raw
1 if (${CMAKE_VERSION} VERSION_GREATER "3.14.0")
2 add_test(NAME cmake_fetch_content2_configure
3 COMMAND ${CMAKE_COMMAND}
4 -G "${CMAKE_GENERATOR}"
5 -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
6 -Dnlohmann_json_source=${PROJECT_SOURCE_DIR}
7 ${CMAKE_CURRENT_SOURCE_DIR}/project
8 )
9 add_test(NAME cmake_fetch_content2_build
10 COMMAND ${CMAKE_COMMAND} --build .
11 )
12 set_tests_properties(cmake_fetch_content2_configure PROPERTIES
13 FIXTURES_SETUP cmake_fetch_content2
14 LABELS "git_required;not_reproducible"
15 )
16 set_tests_properties(cmake_fetch_content2_build PROPERTIES
17 FIXTURES_REQUIRED cmake_fetch_content2
18 LABELS "git_required;not_reproducible"
19 )
20 endif()