File tree Expand file tree Collapse file tree 5 files changed +86
-0
lines changed Expand file tree Collapse file tree 5 files changed +86
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ hunter_default_version(OpenCV VERSION 4.10.0-p0)
107107hunter_default_version(OpenCV-Extra VERSION 4.10.0)
108108hunter_default_version(OpenEXR VERSION 3.1.5-p0)
109109hunter_default_version(OpenGL-Registry VERSION 0.0.0-d15191e-p0)
110+ hunter_default_version(OpenJPH VERSION 0.23.0)
110111hunter_default_version(OpenNMTTokenizer VERSION 1.11.0-p1)
111112hunter_default_version(OpenSSL VERSION 3.0.12)
112113hunter_default_version(OpenSceneGraph VERSION 3.6.3-p0)
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2025, NeroBurner
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+ OpenJPH
15+ VERSION
16+ 0.23.0
17+ URL
18+ "https://github.com/aous72/OpenJPH/archive/0.23.0.tar.gz"
19+ SHA1
20+ a702c867373b58dca9fe7a61f46b3ef440161d68
21+ )
22+
23+ hunter_cmake_args(
24+ OpenJPH
25+ CMAKE_ARGS
26+ OJPH_ENABLE_TIFF_SUPPORT=NO # 0.23.0 not hunterized, no dependencies allowed
27+ OJPH_BUILD_EXECUTABLES=NO
28+ OJPH_BUILD_TESTS=NO
29+ )
30+
31+ hunter_pick_scheme(DEFAULT url_sha1_cmake)
32+ hunter_cacheable(OpenJPH)
33+ hunter_download(PACKAGE_NAME OpenJPH)
Original file line number Diff line number Diff line change 1+ ``` {spelling:word-list}
2+
3+ OpenJPH
4+ ```
5+
6+ ``` {index} single: media ; OpenJPH
7+ ```
8+
9+ (pkg.OpenJPH)=
10+
11+ # OpenJPH
12+
13+ - [ Official] ( https://github.com/aous72/OpenJPH )
14+ - [ Example] ( https://github.com/cpp-pm/hunter/blob/master/examples/OpenJPH/CMakeLists.txt )
15+ - Added by [ NeroBurner] ( https://github.com/NeroBurner ) ([ pr-814] ( https://github.com/cpp-pm/hunter/pull/814 ) )
16+
17+ ``` {literalinclude} /../examples/OpenJPH/CMakeLists.txt
18+ :language: cmake
19+ :start-after: "# DOCUMENTATION_START {"
20+ :end-before: "# DOCUMENTATION_END }"
21+ ```
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2025, NeroBurner
2+ # All rights reserved.
3+
4+ cmake_minimum_required (VERSION 3.10)
5+
6+ # Emulate HunterGate:
7+ # * https://github.com/hunter-packages/gate
8+ include ("../common.cmake" )
9+
10+ project (download-OpenJPH)
11+
12+ # DOCUMENTATION_START {
13+ hunter_add_package(OpenJPH)
14+ find_package (OpenJPH CONFIG REQUIRED)
15+
16+ add_executable (boo boo.cpp)
17+ target_link_libraries (boo PUBLIC openjph)
18+ # DOCUMENTATION_END }
Original file line number Diff line number Diff line change 1+ #include < openjph/ojph_version.h>
2+ #include < openjph/ojph_arch.h>
3+
4+ #include < iostream>
5+
6+ int main () {
7+ std::cout << " OpenJPH version: "
8+ << OPENJPH_VERSION_MAJOR << " ."
9+ << OPENJPH_VERSION_MINOR << " ."
10+ << OPENJPH_VERSION_PATCH << std::endl;
11+ std::cout << " arch level: " << ojph::get_cpu_ext_level () << std::endl;
12+ return 0 ;
13+ }
You can’t perform that action at this time.
0 commit comments