Files
CMake/Tests/RunCMake/ExtraGenerators/RunCMakeTest.cmake
Brad King 6cf281b108 Tests: Add dedicated RunCMake.ExtraGenerators test
The `Simple_${extraGenerator}` tests do not actually need to compile
because they only smoke test CMake's generation of the extra project
files.
2023-02-13 18:15:29 -05:00

20 lines
502 B
CMake

include(RunCMake)
foreach(
extraGenerator
IN ITEMS
"CodeBlocks"
"CodeLite"
"Eclipse CDT4"
"Kate"
"Sublime Text 2"
)
block()
set(RunCMake_GENERATOR "${extraGenerator} - ${RunCMake_GENERATOR}")
set(RunCMake_TEST_VARIANT_DESCRIPTION ": ${RunCMake_GENERATOR}")
string(REPLACE " " "" extraGeneratorNoSpaces "${extraGenerator}")
set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/Simple-${extraGeneratorNoSpaces})
run_cmake(Simple)
endblock()
endforeach()