diff options
| author | 3gg <3gg@shellblade.net> | 2025-12-02 16:39:36 -0800 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2025-12-02 16:39:36 -0800 |
| commit | 6c8ae19be66cee247980a48e736a4e05d14de179 (patch) | |
| tree | d860767907bf0cbe17ec66422e11bea700cf56d9 /contrib/DirectX-Headers-1.618.2/cmake | |
| parent | 8f594c8ebd11f0e5f8a0c6369c3fe7383d250cbe (diff) | |
Diffstat (limited to 'contrib/DirectX-Headers-1.618.2/cmake')
3 files changed, 37 insertions, 0 deletions
diff --git a/contrib/DirectX-Headers-1.618.2/cmake/DirectX-Headers.pc.in b/contrib/DirectX-Headers-1.618.2/cmake/DirectX-Headers.pc.in new file mode 100644 index 0000000..f33d3ff --- /dev/null +++ b/contrib/DirectX-Headers-1.618.2/cmake/DirectX-Headers.pc.in | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | prefix=@CMAKE_INSTALL_PREFIX@ | ||
| 2 | libdir=@DIRECTX_LIBDIR_FOR_PKG_CONFIG@ | ||
| 3 | includedir=@DIRECTX_INCLUDEDIR_FOR_PKG_CONFIG@ | ||
| 4 | |||
| 5 | Name: @PROJECT_NAME@ | ||
| 6 | Description: Headers for using D3D12 | ||
| 7 | URL: https://github.com/microsoft/DirectX-Headers | ||
| 8 | Version: @PROJECT_VERSION@ | ||
| 9 | Cflags: -I${includedir} | ||
| 10 | Libs: -lDirectX-Headers -lDirectX-Guids | ||
diff --git a/contrib/DirectX-Headers-1.618.2/cmake/JoinPaths.cmake b/contrib/DirectX-Headers-1.618.2/cmake/JoinPaths.cmake new file mode 100644 index 0000000..c68d91b --- /dev/null +++ b/contrib/DirectX-Headers-1.618.2/cmake/JoinPaths.cmake | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | # This module provides function for joining paths | ||
| 2 | # known from most languages | ||
| 3 | # | ||
| 4 | # SPDX-License-Identifier: (MIT OR CC0-1.0) | ||
| 5 | # Copyright 2020 Jan Tojnar | ||
| 6 | # https://github.com/jtojnar/cmake-snips | ||
| 7 | # | ||
| 8 | # Modelled after Python’s os.path.join | ||
| 9 | # https://docs.python.org/3.7/library/os.path.html#os.path.join | ||
| 10 | # Windows not supported | ||
| 11 | function(join_paths joined_path first_path_segment) | ||
| 12 | set(temp_path "${first_path_segment}") | ||
| 13 | foreach(current_segment IN LISTS ARGN) | ||
| 14 | if(NOT ("${current_segment}" STREQUAL "")) | ||
| 15 | if(IS_ABSOLUTE "${current_segment}") | ||
| 16 | set(temp_path "${current_segment}") | ||
| 17 | else() | ||
| 18 | set(temp_path "${temp_path}/${current_segment}") | ||
| 19 | endif() | ||
| 20 | endif() | ||
| 21 | endforeach() | ||
| 22 | set(${joined_path} "${temp_path}" PARENT_SCOPE) | ||
| 23 | endfunction() | ||
diff --git a/contrib/DirectX-Headers-1.618.2/cmake/directx-headers-config.cmake.in b/contrib/DirectX-Headers-1.618.2/cmake/directx-headers-config.cmake.in new file mode 100644 index 0000000..50c40bc --- /dev/null +++ b/contrib/DirectX-Headers-1.618.2/cmake/directx-headers-config.cmake.in | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | @PACKAGE_INIT@ | ||
| 2 | |||
| 3 | include("${CMAKE_CURRENT_LIST_DIR}/directx-headers-targets.cmake") | ||
| 4 | check_required_components("@PROJECT_NAME@") \ No newline at end of file | ||
