Commit graph

8 commits

Author SHA1 Message Date
Juan Ramos
891c40de1a cmake: Fix cross-compilation
We need to revert b092b2f in Gentoo to fix multi-ABI vulkan-loader
build

This reverts commit b092b2fccc.

See https://github.com/KhronosGroup/Vulkan-Headers/issues/330 for
details.
2022-12-05 10:13:31 -07:00
Timo Gurr
b092b2fccc cmake: Fix environment for cross-compile installs
Currently the include directory is arch-dependent.
However, the location where the *.cmake files are installed
is arch-independent. This difference causes an issue with
cross compile environments.
2022-11-21 09:47:43 -07:00
Juan Ramos
9cc8473bb9 cmake: Export CMake Targets File
Now as part of install 2 files are created:
- VulkanHeadersConfig.cmake
- VulkanHeadersConfigVersion.cmake

This allows usage of find_package

closes #157
2022-11-08 10:22:11 -07:00
Juan Ramos
91388ba104 cmake: Get Vulkan Version
Extract the vulkan header version for CMake usage
2022-11-07 10:54:57 -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
4be87abcfa cmake: Add Kitware copyright
Get latest Kitware copyright notice from
https://gitlab.kitware.com/cmake/cmake/blob/master/Copyright.txt @ d45d5e2
2018-06-27 11:24:55 -06:00
Karl Schultz
afd12b7bdc build: Add CMake files for install target 2018-05-30 17:38:30 -06:00