mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
d4704cce01
* Make C++20 modules work with the defaultDispatchLoaderDynamic. * Add vulkan_hpp_macros.hpp to list of installed files. * Adjust the text on module in the readme. * Rename module from vulkan to vulkan_hpp * Adjust some comments. * Add a little disclaimer to vulkan.cppm.
14 lines
569 B
CMake
14 lines
569 B
CMake
cmake_minimum_required( VERSION 3.25 )
|
|
|
|
vulkan_hpp__setup_test( NAME Cpp20Modules CXX_STANDARD 20 LIBRARIES VulkanHppModule NO_UTILS )
|
|
|
|
if( NOT VULKAN_HPP_SAMPLES_BUILD_ONLY_DYNAMIC )
|
|
if ( VULKAN_HPP_CPP20_MODULE_DYNAMIC_DISPATCHER )
|
|
target_compile_definitions( Cpp20Modules PUBLIC VULKAN_HPP_DISPATCH_LOADER_DYNAMIC=1 )
|
|
else()
|
|
target_compile_definitions( Cpp20Modules PUBLIC VULKAN_HPP_DISPATCH_LOADER_DYNAMIC=0 )
|
|
endif()
|
|
target_link_libraries( Cpp20Modules PRIVATE Vulkan::Vulkan )
|
|
set_target_properties( Cpp20Modules PROPERTIES CXX_EXTENSIONS OFF
|
|
)
|
|
endif() |