mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 08:20:18 -06:00
Tests: Add RunCMake helper to run a plain script
Many tests covering CMake scripting commands can work without initializing a full generator.
This commit is contained in:
@@ -214,6 +214,11 @@ function(run_cmake_command test)
|
||||
run_cmake(${test})
|
||||
endfunction()
|
||||
|
||||
function(run_cmake_script test)
|
||||
set(RunCMake_TEST_COMMAND ${CMAKE_COMMAND} ${ARGN} -P ${RunCMake_SOURCE_DIR}/${test}.cmake)
|
||||
run_cmake(${test})
|
||||
endfunction()
|
||||
|
||||
function(run_cmake_with_options test)
|
||||
set(RunCMake_TEST_OPTIONS "${ARGN}")
|
||||
run_cmake(${test})
|
||||
|
||||
Reference in New Issue
Block a user