Commit Graph

17 Commits

Author SHA1 Message Date
Andrea Pappacoda
d9234dee3c
build: use ARCH_INDEPENDENT if possible
Since this is a header-only library, the CMake Version file should be marked architecture-independent with the ARCH_INDEPENDENT option. As the option has been added in CMake 3.14 and spriv-headers supports CMake 3.0 the option has to be passed only if supported.
2022-04-07 13:27:01 +02:00
Andrei Malashkin
c8213b3c5a add 1.5.5 tag 2021-10-11 15:45:36 +02:00
BedrockDotPng
7ec2a1264c
Update CMakeLists.txt
Fixed CMake file for Shaderc to properly compile.
2021-09-09 18:54:44 +04:00
Tomasz Kłoczko
60a5738c0a Rename spirv-headers.pc to SPIRV-Headers.pc 2021-05-20 09:45:33 +01:00
Tomasz Kłoczko
4f87476e1d removed excesive space in configure_file() line 2021-05-19 18:23:31 +01:00
Tomasz Kłoczko
d23495700e Add spirv-headers pkgconfig file
With installed pkgconfig file other projects build processes can
detest availability of the spirv-headers and require some minimum
version of the spirv-headers to be present in build environment.

Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
2021-05-18 14:11:23 +01:00
orbea
eae955f052 cmake: Install cmake files to CMAKE_INSTALL_DATADIR 2020-11-05 22:08:24 -08:00
Mihai Vultur
927aae4dcb
Also propagate SPIRV-Headers version to CMakeLists.txt 2020-01-01 04:50:17 +02:00
lgotszal
3f9bad6fc4 add cmake option SPIRV_HEADERS_SKIP_INSTALL 2019-09-24 16:44:13 +02:00
Matt Chiasson
ed8674d228
Update CMakeLists.txt 2019-05-18 19:44:18 -04:00
Matt Chiasson
f7b06c2770
updated as per code review 2019-05-16 07:45:30 -04:00
Mathieu-Andre Chiasson
c5a291f7a5 cmake development configuration package
Fixes #104
2019-05-11 16:24:44 -04:00
dan sinclair
7cb43009d5 Add option to skip examples.
This CL adds a SPIRV_HEADERS_SKIP_EXAMPLES flag which skips building the
example folder.
2018-11-16 13:03:23 -05:00
James Knight
7de7b23f6e cmake: support gnu installation directory convention
Support the handling of the `DESTDIR` environment variable for
environments (UNIX-based) opting for an GNU-style installation over
a CMake-style installation.

Cc: sl1pkn07 <sl1pkn07@gmail.com>
Signed-off-by: James Knight <james.d.knight@live.com>
2018-06-01 20:54:54 -04:00
James Knight
4ca4743e9d cmake: support default install target
Allow the common install target to support the installation of
header files (rather then having a custom target). Developers should
be able to invoke the install target as follows:

    cmake --build . --target install

This commit leaves the original custom target to install headers
for interim support.

Signed-off-by: James Knight <james.d.knight@live.com>
2017-09-27 23:05:35 -04:00
James Knight
b8d95fb37e cmake: bump minimum required to support example
The sub-directory "example" takes advantage of the command
"target_include_directories", which is only available in CMake
v2.8.11+ [1][2]. Bumping the minimum version of CMake required.

[1]: https://cmake.org/cmake/help/v2.8.11/cmake.html#command:target_include_directories
[2]: https://cmake.org/cmake/help/v2.8.10/cmake.html#section_Commands

Signed-off-by: James Knight <james.d.knight@live.com>
2017-09-27 22:57:36 -04:00
David Neto
2065e59fa5 Publish SPIR-V Registry files: SPIR-V 1.0 Revision 4
Include all the headers.

Include the XML registry file, spir-v.xml, since it's also machine-readable
and potentially useful to programs.
2016-04-14 15:58:05 -04:00