File tree 5 files changed +80
-0
lines changed
projects/ned14-internal-quickcpplib
examples/ned14-internal-quickcpplib
5 files changed +80
-0
lines changed Original file line number Diff line number Diff line change @@ -401,6 +401,7 @@ hunter_default_version(nanoflann VERSION 1.2.3-p0)
401
401
hunter_default_version(nanosvg VERSION 0.0.0-2b08dee-p0)
402
402
hunter_default_version(ncnn VERSION 20180314-p2)
403
403
hunter_default_version(ncursesw VERSION 6.1)
404
+ hunter_default_version(ned14-internal -quickcpplib VERSION 0.0.0-ef0fe8ec)
404
405
hunter_default_version(nlohmann_fifo_map VERSION 0.0.0-0dfbf5d-p1)
405
406
hunter_default_version(nlohmann_json VERSION 3.8.0)
406
407
hunter_default_version(nng VERSION 1.1.1)
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2021 Niall Douglas https://www.nedproductions.biz/
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
+ include (hunter_source_subdir)
12
+
13
+ hunter_add_version(
14
+ PACKAGE_NAME
15
+ ned14-internal -quickcpplib
16
+ VERSION
17
+ 0.0.0-ef0fe8ec
18
+ URL
19
+ "https://github.com/ned14/quickcpplib/archive/ef0fe8ecf9951717b63b27447ddcaf5cc8eed6e2.tar.gz"
20
+ SHA1
21
+ 3a36f46f4e03893d908894aa7e6d78f7ab1fe0bf
22
+ )
23
+
24
+ hunter_cmake_args(ned14-internal -quickcpplib CMAKE_ARGS
25
+ PROJECT_IS_DEPENDENCY=ON
26
+ )
27
+
28
+ hunter_pick_scheme(DEFAULT url_sha1_cmake)
29
+ hunter_cacheable(ned14-internal -quickcpplib)
30
+ hunter_download(PACKAGE_NAME ned14-internal -quickcpplib)
Original file line number Diff line number Diff line change
1
+ .. spelling ::
2
+
3
+ QuickCppLib
4
+ quickcpplib
5
+ ned14-internal-quickcpplib
6
+
7
+ .. _pkg.ned14-internal-quickcpplib :
8
+
9
+ ned14-internal-quickcpplib
10
+ ==========================
11
+
12
+ - `Official <https://github.com/ned14/quickcpplib >`__
13
+
14
+ .. code-block :: cmake
15
+
16
+ find_package(Threads REQUIRED)
17
+ hunter_add_package(ned14-internal-quickcpplib)
18
+ find_package(quickcpplib CONFIG REQUIRED)
19
+ target_link_libraries(... quickcpplib::hl Threads::Threads)
20
+
21
+ QuickCppLib is an internal dependency automatically retrieved by Outcome
22
+ and LLFIO and is only present here to ensure exactly reproducible builds.
23
+ Do not use it in your own projects.
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2021 Niall Douglas
2
+ # All rights reserved.
3
+
4
+ cmake_minimum_required (VERSION 3.0)
5
+
6
+ # Emulate HunterGate:
7
+ # * https://github.com/cpp-pm/gate
8
+ include ("../common.cmake" )
9
+
10
+ project (download-ned14-internal -quickcpplib)
11
+ find_package (Threads REQUIRED)
12
+
13
+ hunter_add_package(ned14-internal -quickcpplib)
14
+ find_package (quickcpplib CONFIG REQUIRED)
15
+
16
+ add_executable (foo foo.cpp)
17
+ target_link_libraries (foo PUBLIC quickcpplib::hl Threads::Threads)
Original file line number Diff line number Diff line change
1
+ #include < quickcpplib/byte.hpp>
2
+ #include < quickcpplib/signal_guard.hpp>
3
+
4
+ int main () {
5
+ using namespace QUICKCPPLIB_NAMESPACE ::signal_guard;
6
+ signal_guard_install i (signalc_set::segmentation_fault | signalc_set::cxx_termination);
7
+ (void ) i;
8
+ return 0 ;
9
+ }
You can’t perform that action at this time.
0 commit comments