Add HLSL testing to ctest.

This commit is contained in:
Hans-Kristian Arntzen 2017-01-28 08:58:39 +01:00
parent d0cc4fe3ad
commit 56df3bf5fe

View File

@ -103,6 +103,9 @@ if (${PYTHONINTERP_FOUND})
add_test(NAME spirv-cross-test-metal
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_shaders.py --metal
${CMAKE_CURRENT_SOURCE_DIR}/shaders-msl)
add_test(NAME spirv-cross-test-hlsl
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_shaders.py --hlsl
${CMAKE_CURRENT_SOURCE_DIR}/shaders-hlsl)
endif()
else()
message(WARNING "Testing disabled. Could not find python3. If you have python3 installed try running "