Skip to content

Commit 89a02c2

Browse files
authored
Add package KTX-Software (#435)
* Add package KTX-Software * Update SHA1
1 parent 55f278a commit 89a02c2

File tree

5 files changed

+80
-0
lines changed

5 files changed

+80
-0
lines changed

cmake/configs/default.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ hunter_default_version(Imath VERSION 3.0.1)
8484
hunter_default_version(Immer VERSION 0.6.2-cf44615)
8585
hunter_default_version(Jpeg VERSION 9c-p0)
8686
hunter_default_version(JsonSpirit VERSION 0.0.4-hunter)
87+
hunter_default_version(KTX-Software VERSION 4.0.0-efc9f09-p0)
8788
hunter_default_version(KhronosDataFormat VERSION 1.3.1-1f8c852-p3)
8889
hunter_default_version(LAPACK VERSION 3.7.1)
8990
hunter_default_version(LLVM VERSION 6.0.1-p0) # Clang
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Copyright (c) 2016-2020, Rahul Sheth, Ruslan Baratov
2+
# All rights reserved.
3+
4+
# !!! DO NOT PLACE HEADER GUARDS HERE !!!
5+
6+
include(hunter_add_version)
7+
include(hunter_cacheable)
8+
include(hunter_cmake_args)
9+
include(hunter_download)
10+
include(hunter_pick_scheme)
11+
12+
hunter_add_version(
13+
PACKAGE_NAME
14+
KTX-Software
15+
VERSION
16+
4.0.0-efc9f09-p0
17+
URL
18+
"https://github.com/cpp-pm/KTX-Software/archive/refs/tags/v4.0.0-efc9f09-p0.tar.gz"
19+
SHA1
20+
e55bf10b4e97265de8475b4b68cd5b46e5f3e1cc
21+
)
22+
23+
hunter_cmake_args(
24+
KTX-Software
25+
CMAKE_ARGS
26+
KTX_FEATURE_DOC=OFF
27+
KTX_FEATURE_LOADTEST_APPS=OFF
28+
KTX_FEATURE_STATIC_LIBRARY=ON
29+
KTX_FEATURE_TESTS=OFF
30+
KTX_FEATURE_TOOLS=OFF
31+
)
32+
33+
hunter_pick_scheme(DEFAULT url_sha1_cmake)
34+
hunter_cacheable(KTX-Software)
35+
hunter_download(PACKAGE_NAME KTX-Software)

docs/packages/pkg/KTX-Software.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.. spelling::
2+
3+
KTX
4+
5+
.. index::
6+
single: unsorted ; KTX-Software
7+
8+
.. _pkg.KTX-Software:
9+
10+
KTX-Software
11+
============
12+
13+
- `Official <https://github.com/KhronosGroup/KTX-Software>`__
14+
- `Hunterized <https://github.com/cpp-pm/KTX-Software>`__
15+
- `Example <https://github.com/cpp-pm/hunter/blob/master/examples/KTX-Software/CMakeLists.txt>`__
16+
- Added by `Rahul Sheth <https://github.com/rbsheth>`__ (`pr-435 <https://github.com/cpp-pm/hunter/pull/435>`__)
17+
18+
.. literalinclude:: /../examples/KTX-Software/CMakeLists.txt
19+
:language: cmake
20+
:start-after: # DOCUMENTATION_START {
21+
:end-before: # DOCUMENTATION_END }
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright (c) 2016-2020, Rahul Sheth, Ruslan Baratov
2+
# All rights reserved.
3+
4+
cmake_minimum_required(VERSION 3.2)
5+
6+
# Emulate HunterGate:
7+
# * https://github.com/hunter-packages/gate
8+
include("../common.cmake")
9+
10+
project(download-KTX-Software)
11+
12+
# DOCUMENTATION_START {
13+
hunter_add_package(KTX-Software)
14+
find_package(KTX-Software CONFIG REQUIRED)
15+
16+
add_executable(boo boo.cpp)
17+
target_link_libraries(boo PUBLIC KTX-Software::ktx)
18+
# DOCUMENTATION_END }

examples/KTX-Software/boo.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#include <KHR/ktx.h>
2+
3+
int main() {
4+
ktxStream ktxStream;
5+
}

0 commit comments

Comments
 (0)