From cafcda93602251fc5fe306bc4523b5ffcb7cb8eb Mon Sep 17 00:00:00 2001 From: Jan Kuhlmann <33833587+M2-TE@users.noreply.github.com> Date: Fri, 21 Mar 2025 09:21:18 +0000 Subject: [PATCH] Added licenses and used included headers in minimal examples Co-authored-by: jpr42 <109434725+jpr42@users.noreply.github.com> --- tests/integration/CMakeLists.txt | 1 - tests/vk_hpp.cpp | 11 +++++++++-- tests/vk_hpp_module.cpp | 11 +++++++++-- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/tests/integration/CMakeLists.txt b/tests/integration/CMakeLists.txt index 641feae..d120531 100644 --- a/tests/integration/CMakeLists.txt +++ b/tests/integration/CMakeLists.txt @@ -86,7 +86,6 @@ target_link_libraries(vk_hpp PRIVATE Vulkan::Headers) # vulkan.cppm if (VULKAN_HEADERS_ENABLE_MODULE) add_library(vk_hpp_module MODULE ../vk_hpp_module.cpp) - target_compile_features(vk_hpp_module PUBLIC cxx_std_20) set_target_properties(vk_hpp_module PROPERTIES CXX_SCAN_FOR_MODULES ON) target_link_libraries(vk_hpp_module PRIVATE Vulkan::HppModule) endif() \ No newline at end of file diff --git a/tests/vk_hpp.cpp b/tests/vk_hpp.cpp index 18bd57a..5f2ce9d 100644 --- a/tests/vk_hpp.cpp +++ b/tests/vk_hpp.cpp @@ -1,6 +1,13 @@ +/* + * Copyright 2025 The Khronos Group Inc. + * Copyright 2025 Valve Corporation + * Copyright 2025 LunarG, Inc. + * + * SPDX-License-Identifier: Apache-2.0 + */ #include -int square(int i) +int header_version() { - return i * i; + return VK_HEADER_VERSION; } \ No newline at end of file diff --git a/tests/vk_hpp_module.cpp b/tests/vk_hpp_module.cpp index 6ae92b9..7ea6049 100644 --- a/tests/vk_hpp_module.cpp +++ b/tests/vk_hpp_module.cpp @@ -1,6 +1,13 @@ +/* + * Copyright 2025 The Khronos Group Inc. + * Copyright 2025 Valve Corporation + * Copyright 2025 LunarG, Inc. + * + * SPDX-License-Identifier: Apache-2.0 + */ import vulkan_hpp; -int square(int i) +int header_version() { - return i * i; + return VK_HEADER_VERSION; } \ No newline at end of file