1e8556ba3Sopenharmony_ci# ~~~ 2e8556ba3Sopenharmony_ci# Copyright 2022-2023 The Khronos Group Inc. 3e8556ba3Sopenharmony_ci# Copyright 2022-2023 Valve Corporation 4e8556ba3Sopenharmony_ci# Copyright 2022-2023 LunarG, Inc. 5e8556ba3Sopenharmony_ci# 6e8556ba3Sopenharmony_ci# SPDX-License-Identifier: Apache-2.0 7e8556ba3Sopenharmony_ci# ~~~ 8e8556ba3Sopenharmony_ci 9e8556ba3Sopenharmony_ci# Test add_subdirectory suppport 10e8556ba3Sopenharmony_ciadd_test(NAME integration.add_subdirectory 11e8556ba3Sopenharmony_ci COMMAND ${CMAKE_CTEST_COMMAND} 12e8556ba3Sopenharmony_ci --build-and-test ${CMAKE_CURRENT_LIST_DIR}/integration 13e8556ba3Sopenharmony_ci ${CMAKE_CURRENT_BINARY_DIR}/add_subdirectory 14e8556ba3Sopenharmony_ci --build-generator ${CMAKE_GENERATOR} 15e8556ba3Sopenharmony_ci --build-options -DFIND_PACKAGE_TESTING=OFF 16e8556ba3Sopenharmony_ci) 17e8556ba3Sopenharmony_ci 18e8556ba3Sopenharmony_ciset(test_install_dir "${CMAKE_CURRENT_BINARY_DIR}/install") 19e8556ba3Sopenharmony_ciadd_test(NAME integration.install 20e8556ba3Sopenharmony_ci COMMAND ${CMAKE_COMMAND} --install ${VULKAN_HEADERS_BINARY_DIR} --prefix ${test_install_dir} --config $<CONFIG> 21e8556ba3Sopenharmony_ci) 22e8556ba3Sopenharmony_ci 23e8556ba3Sopenharmony_ci# Test find_package suppport 24e8556ba3Sopenharmony_ciadd_test(NAME integration.find_package 25e8556ba3Sopenharmony_ci COMMAND ${CMAKE_CTEST_COMMAND} 26e8556ba3Sopenharmony_ci --build-and-test ${CMAKE_CURRENT_LIST_DIR}/integration 27e8556ba3Sopenharmony_ci ${CMAKE_CURRENT_BINARY_DIR}/find_package 28e8556ba3Sopenharmony_ci --build-generator ${CMAKE_GENERATOR} 29e8556ba3Sopenharmony_ci --build-options -DFIND_PACKAGE_TESTING=ON -DCMAKE_PREFIX_PATH=${test_install_dir} 30e8556ba3Sopenharmony_ci) 31e8556ba3Sopenharmony_ci 32e8556ba3Sopenharmony_ci# Installing comes before testing 33e8556ba3Sopenharmony_ciset_tests_properties(integration.find_package PROPERTIES DEPENDS integration.install) 34