• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1add_test(NAME cmake_import_configure
2  COMMAND ${CMAKE_COMMAND}
3    -G "${CMAKE_GENERATOR}"
4    -A "${CMAKE_GENERATOR_PLATFORM}"
5    -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
6    -Dnlohmann_json_DIR=${PROJECT_BINARY_DIR}
7    ${CMAKE_CURRENT_SOURCE_DIR}/project
8)
9add_test(NAME cmake_import_build
10  COMMAND ${CMAKE_COMMAND} --build .
11)
12set_tests_properties(cmake_import_configure PROPERTIES
13  FIXTURES_SETUP cmake_import
14)
15set_tests_properties(cmake_import_build PROPERTIES
16  FIXTURES_REQUIRED cmake_import
17)
18