Commit Graph

13 Commits

Author SHA1 Message Date
andrew0229
35e74be546 update vulkan headers v1.3.275
Signed-off-by: andrew0229 <zhangzhao62@huawei.com>
Change-Id: Iea9dae9f174999d70e16290430669ed16181a54d
2024-05-21 10:34:44 +00:00
shegangbin
cd7285a5fb vulkan-headers upgrade to sdk-1.3.250.1
Signed-off-by: shegangbin <shegangbin1@huawei.com>
2024-01-17 19:05:01 +08:00
Mike Schuchardt
f5ac258209 Add vk_video headers to CMake install target 2021-04-13 16:23:52 -07:00
Mike Weiblen
62becc509a Revert "Export versioned targets for CMake"
This reverts commit 382bf3de06.

Revert PR #110
https://github.com/KhronosGroup/Vulkan-Headers/pull/110
2020-04-23 10:59:45 -06:00
Rahul Sheth
382bf3de06 Export versioned targets for CMake
Generate VulkanHeadersConfig.cmake and version file and install them.
To get the version information the header file vulkan_core.h is parsed.

In client code one can use `find_package(VulkanHeaders)` and get the
targets `Vulkan::Headers` and `Vulkan::Registry`.

The following additional files are generated and installed by CMake:
- VulkanHeadersConfig.cmake:        searched for by find_package(VulkanHeaders)
- VulkanHeadersConfigVersion.cmake: provides version numbers
- VulkanHeadersTargets.cmake:       CMake target definitions used by config file
2020-04-16 16:21:54 -06:00
Mike Weiblen
5ce5b15b54 build: Update cmake_minimum_required(VERSION 3.10.2)
Change-Id: I28c30bb941691738944b13da75bc07e6153c89ef
2019-07-16 15:10:44 -06:00
Nuno Subtil
2ed3359a52 build: Define library targets for nested builds-
Adds alias interface libraries Vulkan::Headers and Vulkan::Registry that
export include paths. These are meant to be used by dependent projects
in a nested build configuration to obtain the path to the Vulkan headers
and registry directories.

Change-Id: I0801f4a23ef654064c1b0878543cd48965954756
2019-02-28 12:11:24 -07:00
Nuno Subtil
1c8d71f98a build: Fix install target path
Use CMAKE_CURRENT_SOURCE_DIR instead of CMAKE_SOURCE_DIR when defining
the path for the source files to be installed.

CMAKE_SOURCE_DIR always points at the directory containing the root
CMakeLists.txt, while CMAKE_CURRENT_SOURCE_DIR points at the directory
containing the current project's CMakeLists.txt. These are normally
identical, except when another CMake project includes this project via
add_subdirectory() --- in that case, CMAKE_CURRENT_SOURCE_DIR is the
right variable to use when composing paths to files within the current
project tree.

Change-Id: I4bdcc3bf538e96c43ae5f4ff6758cf45992442e0
2018-12-03 11:02:49 -07:00
Mike Weiblen
6b47ce4d93 build: CMakeLists.txt cleanup
A cleanup of the CMake file in this repo,
for consistency with similar effort in other Vulkan repos.

clarify setting Windows install prefix if needed

project() : NONE = this project has no language toolchain requirement.

update .cmake-format.py 0.4.1

reformat using cmake-format 0.4.1

Change-Id: Ic64b335676eb6b8bd8ffd1b0d8c5468a4239287c
2018-09-07 13:51:11 -06:00
Mike Weiblen
0642c1b859 build: Beautify cmake files
Add the formatter config file (.cmake-format.py) and run:
cmake-format -i CMakeLists.txt
2018-06-27 11:25:45 -06:00
Mike Weiblen
6cb0f5b3cc build: Insert copyright in cmake files 2018-06-27 11:25:00 -06:00
Karl Schultz
70413b6dcb cmake: Prevent redefinition of uninstall target
Allows for this repo to be included as a submodule of another
repo that defines its own uninstall target.  The uninstall target
is best defined at the top-level repo.
2018-06-12 15:06:34 -06:00
Karl Schultz
afd12b7bdc build: Add CMake files for install target 2018-05-30 17:38:30 -06:00