merged subdirectory tests

This commit is contained in:
Jan Kuhlmann 2025-03-19 14:21:25 +01:00 committed by Charles Giessen
parent 9417d66dcf
commit fdc7404466

View file

@ -6,22 +6,13 @@
# SPDX-License-Identifier: Apache-2.0
# ~~~
# Test add_subdirectory suppport for headers
add_test(NAME integration.add_subdirectory_headers
# Test add_subdirectory suppport
add_test(NAME integration.add_subdirectory
COMMAND ${CMAKE_CTEST_COMMAND}
--build-and-test ${CMAKE_CURRENT_LIST_DIR}/integration
${CMAKE_CURRENT_BINARY_DIR}/add_subdirectory_headers
${CMAKE_CURRENT_BINARY_DIR}/add_subdirectory
--build-generator ${CMAKE_GENERATOR}
--build-options -DFIND_PACKAGE_TESTING=OFF -DVULKAN_HEADERS_ENABLE_MODULE=OFF
)
# Test add_subdirectory suppport for C++20 modules
add_test(NAME integration.add_subdirectory_modules
COMMAND ${CMAKE_CTEST_COMMAND}
--build-and-test ${CMAKE_CURRENT_LIST_DIR}/integration
${CMAKE_CURRENT_BINARY_DIR}/add_subdirectory_modules
--build-generator ${CMAKE_GENERATOR}
--build-options -DFIND_PACKAGE_TESTING=OFF -DVULKAN_HEADERS_ENABLE_MODULE=ON
--build-options -DFIND_PACKAGE_TESTING=OFF -DVULKAN_HEADERS_ENABLE_MODULE=${VULKAN_HEADERS_ENABLE_MODULE}
)
set(test_install_dir "${CMAKE_CURRENT_BINARY_DIR}/install")