Skip to content

Commit 0a08049

Browse files
committed
Add ned14-internal-quickcpplib in preparation for Outcome and then LLFIO.
1 parent 75fa113 commit 0a08049

File tree

5 files changed

+83
-0
lines changed

5 files changed

+83
-0
lines changed

cmake/configs/default.cmake

+1
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ hunter_default_version(nanoflann VERSION 1.2.3-p0)
401401
hunter_default_version(nanosvg VERSION 0.0.0-2b08dee-p0)
402402
hunter_default_version(ncnn VERSION 20180314-p2)
403403
hunter_default_version(ncursesw VERSION 6.1)
404+
hunter_default_version(ned14-internal-quickcpplib VERSION 0.0.0-ef0fe8ec)
404405
hunter_default_version(nlohmann_fifo_map VERSION 0.0.0-0dfbf5d-p1)
405406
hunter_default_version(nlohmann_json VERSION 3.8.0)
406407
hunter_default_version(nng VERSION 1.1.1)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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_source_subdir(ned14-internal-quickcpplib SOURCE_SUBDIR "build")
25+
26+
hunter_cmake_args(ned14-internal-quickcpplib CMAKE_ARGS
27+
PROJECT_IS_DEPENDENCY=ON
28+
)
29+
30+
hunter_pick_scheme(DEFAULT url_sha1_cmake)
31+
hunter_cacheable(ned14-internal-quickcpplib)
32+
hunter_download(PACKAGE_NAME ned14-internal-quickcpplib)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
hunter_add_package(ned14-internal-quickcpplib)
17+
find_package(quickcpplib CONFIG REQUIRED)
18+
target_link_libraries(... quickcpplib::hl)
19+
20+
QuickCppLib is an internal dependency automatically retrieved by Outcome
21+
and LLFIO and is only present here to ensure exactly reproducible builds.
22+
Do not use it in your own projects.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
12+
hunter_add_package(ned14-internal-quickcpplib)
13+
find_package(quickcpplib CONFIG REQUIRED)
14+
15+
add_executable(foo-static foo.cpp)
16+
target_link_libraries(foo-static PUBLIC quickcpplib::hl)
17+
18+
add_executable(foo-shared foo.cpp)
19+
target_link_libraries(foo-shared PUBLIC quickcpplib::hl)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
}

0 commit comments

Comments
 (0)