5 Star 1 Fork 11

OpenHarmony / third_party_vulkan-headers

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
BUILD.md 1.18 KB
一键复制 编辑 原始数据 按行查看 历史

Build Instructions

Instructions for building this repository.

git clone https://github.com/KhronosGroup/Vulkan-Headers.git

cd Vulkan-Headers/

# Configure the project
cmake -S . -B build/

# Because Vulkan-Headers is header only we don't need to build anything.
# Users can install it where they need to.
cmake --install build --prefix build/install

See the official CMake documentation for more information.

Installed Files

The install target installs the following files under the directory indicated by install_dir:

  • install_dir/include/vulkan : The header files found in the include/vulkan directory of this repository
  • install_dir/share/cmake/VulkanHeaders: The CMake config files needed for find_package support
  • install_dir/share/vulkan/registry : The registry files found in the registry directory of this repository

Usage in CMake

find_package(VulkanHeaders REQUIRED CONFIG)

target_link_libraries(foobar PRIVATE Vulkan::Headers)

message(STATUS "Vulkan Headers Registry: ${VULKAN_HEADERS_REGISTRY_DIRECTORY}")

message(STATUS "Vulkan Headers Version: ${VulkanHeaders_VERSION}")
1
https://gitee.com/openharmony/third_party_vulkan-headers.git
git@gitee.com:openharmony/third_party_vulkan-headers.git
openharmony
third_party_vulkan-headers
third_party_vulkan-headers
master

搜索帮助