File tree Expand file tree Collapse file tree 5 files changed +80
-0
lines changed
Expand file tree Collapse file tree 5 files changed +80
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ hunter_default_version(Imath VERSION 3.0.1)
8484hunter_default_version(Immer VERSION 0.6.2-cf44615)
8585hunter_default_version(Jpeg VERSION 9c-p0)
8686hunter_default_version(JsonSpirit VERSION 0.0.4-hunter)
87+ hunter_default_version(KTX-Software VERSION 4.0.0-efc9f09-p0)
8788hunter_default_version(KhronosDataFormat VERSION 1.3.1-1f8c852-p3)
8889hunter_default_version(LAPACK VERSION 3.7.1)
8990hunter_default_version(LLVM VERSION 6.0.1-p0) # Clang
Original file line number Diff line number Diff line change 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)
Original file line number Diff line number Diff line change 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 }
Original file line number Diff line number Diff line change 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 }
Original file line number Diff line number Diff line change 1+ #include < KHR/ktx.h>
2+
3+ int main () {
4+ ktxStream ktxStream;
5+ }
You can’t perform that action at this time.
0 commit comments