CMake/Tests/FindVulkan/CMakeLists.txt
Juan Ramos 9cefa2f08d Tests/FindVulkan: Allow easy way to switch between VulkanSDK installations
Running with `--fresh` resets the cache each time. Which is valuable
for switching between SDK installations.
2024-02-07 10:04:16 -05:00

12 lines
445 B
CMake

add_test(NAME FindVulkan.Test COMMAND
${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION>
--build-and-test
"${CMake_SOURCE_DIR}/Tests/FindVulkan/Test"
"${CMake_BINARY_DIR}/Tests/FindVulkan/Test"
${build_generator_args}
--build-project TestFindVulkan
# Use --fresh to make testing multiple SDK versions on the same computer easier
--build-options ${build_options} --fresh
--test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION>
)