comparison fuhtark_test/Vulkan-Headers-1.4.334/tests/CMakeLists.txt @ 1501:f40d9d814c08 default tip

did: correct vulkan-api generator
author sam <sam@basx.dev>
date Wed, 26 Nov 2025 23:34:29 +0700
parents
children
comparison
equal deleted inserted replaced
1500:91c8c3b7cbf0 1501:f40d9d814c08
1 # ~~~
2 # Copyright 2022-2023 The Khronos Group Inc.
3 # Copyright 2022-2023 Valve Corporation
4 # Copyright 2022-2023 LunarG, Inc.
5 #
6 # SPDX-License-Identifier: Apache-2.0
7 # ~~~
8
9 # Test add_subdirectory suppport
10 add_test(NAME integration.add_subdirectory
11 COMMAND ${CMAKE_CTEST_COMMAND}
12 --build-and-test ${CMAKE_CURRENT_LIST_DIR}/integration
13 ${CMAKE_CURRENT_BINARY_DIR}/add_subdirectory
14 --build-generator ${CMAKE_GENERATOR}
15 --build-options
16 -DFIND_PACKAGE_TESTING=OFF
17 )
18
19 set(test_install_dir "${CMAKE_CURRENT_BINARY_DIR}/install")
20 add_test(NAME integration.install
21 COMMAND ${CMAKE_COMMAND} --install ${VULKAN_HEADERS_BINARY_DIR} --prefix ${test_install_dir} --config $<CONFIG>
22 )
23
24 # Test find_package suppport
25 add_test(NAME integration.find_package
26 COMMAND ${CMAKE_CTEST_COMMAND}
27 --build-and-test ${CMAKE_CURRENT_LIST_DIR}/integration
28 ${CMAKE_CURRENT_BINARY_DIR}/find_package
29 --build-generator ${CMAKE_GENERATOR}
30 --build-options
31 -DFIND_PACKAGE_TESTING=ON
32 -DCMAKE_PREFIX_PATH=${test_install_dir}
33 )
34
35 # Installing comes before testing
36 set_tests_properties(integration.find_package PROPERTIES DEPENDS integration.install)