Skip to content

Latest commit

 

History

History
63 lines (43 loc) · 1.56 KB

BUILD.md

File metadata and controls

63 lines (43 loc) · 1.56 KB

Vulkan SC Build Instructions

Build the Vulkan SC headers from this repository as follows:

cmake -S . -B build/
cmake --install build --prefix build/install

Build the combined Vulkan SC headers used by ecosystem components as follows:

cmake -DGEN_VULKANSC_COMBINED -S . -B build/
cmake --build build
cmake --install build --prefix build/install

Build Instructions

Instructions for building this repository.

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

cd VulkanSC-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/vulkansc/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 SC Headers Version: ${VulkanHeaders_VERSION}")