forked from cpp-pm/hunter
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update date package to one which compiles with VS2019 (cpp-pm#183) * Add asio, date and zstd to their respective package categories. (cpp-pm#184) * Update of PocoCPP hunter pkg to 1.10.1 (cpp-pm#188) * Update Poco version * Disable some broken components * Update poco version * Update version * Update version * update poco version * update version * update version * Update to new poco version 1.10.1 * Update to v1.10.1-p0 poco version * Updates Boost’s default version to 1.72.0-p1. (cpp-pm#192) This commit updates Boost’s default version to 1.72.0-p1 to take advantage of the cpp-pm#180 fix. * Add 'uuid' package (cpp-pm#193) * Initial commit * First working build. * Add offical url * Add PR number Co-authored-by: Niall Douglas <s_github@nedprod.com> Co-authored-by: Joerg-Christian Boehme <joerg@chaosdorf.de> Co-authored-by: Olli Wang <olliwang@ollix.com>
- Loading branch information
1 parent
4f614f0
commit 5470d12
Showing
13 changed files
with
125 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# !!! DO NOT PLACE HEADER GUARDS HERE !!! | ||
|
||
include(hunter_add_version) | ||
include(hunter_cacheable) | ||
include(hunter_cmake_args) | ||
include(hunter_configuration_types) | ||
include(hunter_download) | ||
include(hunter_pick_scheme) | ||
|
||
hunter_add_version( | ||
PACKAGE_NAME | ||
uuid | ||
VERSION | ||
1.0.3 | ||
URL | ||
"https://sourceforge.net/projects/libuuid/files/libuuid-1.0.3.tar.gz/download" | ||
SHA1 | ||
46eaedb875ae6e63677b51ec583656199241d597 | ||
) | ||
|
||
hunter_cmake_args( | ||
uuid | ||
CMAKE_ARGS | ||
PKGCONFIG_EXPORT_TARGETS=uuid | ||
) | ||
|
||
hunter_configuration_types(uuid CONFIGURATION_TYPES Release) | ||
hunter_pick_scheme(DEFAULT url_sha1_autotools) | ||
hunter_cacheable(uuid) | ||
hunter_download( | ||
PACKAGE_NAME uuid | ||
PACKAGE_INTERNAL_DEPS_ID "1" | ||
PACKAGE_UNRELOCATABLE_TEXT_FILES | ||
"lib/libuuid.la" | ||
"lib/pkgconfig/uuid.pc" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
.. spelling:: | ||
|
||
date | ||
date_interface | ||
|
||
.. index:: | ||
single: unsorted ; date | ||
.. index:: datetime ; date | ||
|
||
.. _pkg.date: | ||
|
||
date | ||
==== | ||
|
||
- https://github.com/HowardHinnant/date | ||
- `Official <https://github.com/HowardHinnant/date>`__ | ||
- `Example <https://github.com/cpp-pm/hunter/blob/master/examples/date/CMakeLists.txt>`__ | ||
|
||
.. literalinclude:: /../examples/date/CMakeLists.txt | ||
:language: cmake | ||
:start-after: # DOCUMENTATION_START { | ||
:end-before: # DOCUMENTATION_END } | ||
|
||
The target to link against changed upstream across versions: | ||
|
||
- 2.4.1 and before, it is `date_interface`. | ||
- 2.4.1-e12095f and after, it is `date::date`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.. spelling:: | ||
|
||
uuid | ||
|
||
.. index:: | ||
single: unsorted ; uuid | ||
|
||
.. _pkg.uuid: | ||
|
||
uuid | ||
==== | ||
|
||
- `Official <https://sourceforge.net/projects/libuuid/>`__ | ||
- `Example <https://github.com/cpp-pm/hunter/blob/master/examples/uuid/CMakeLists.txt>`__ | ||
- Added by `Joerg-Christian Boehme <https://github.com/Bjoe>`__ (`pr-193 <https://github.com/cpp-pm/hunter/pull/193>`__) | ||
|
||
.. literalinclude:: /../examples/uuid/CMakeLists.txt | ||
:language: cmake | ||
:start-after: # DOCUMENTATION_START { | ||
:end-before: # DOCUMENTATION_END } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ int main() { | |
|
||
auto today = floor<days>(system_clock::now()); | ||
std::cout << today << '\n'; | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright (c) | ||
# All rights reserved. | ||
|
||
cmake_minimum_required(VERSION 3.2) | ||
|
||
# Emulate HunterGate: | ||
# * https://github.com/cpp-pm/gate | ||
include("../common.cmake") | ||
|
||
project(uuid) | ||
|
||
# DOCUMENTATION_START { | ||
hunter_add_package(uuid) | ||
find_package(uuid CONFIG REQUIRED) | ||
|
||
add_executable(boo boo.cpp) | ||
target_link_libraries(boo PUBLIC PkgConfig::uuid) | ||
# DOCUMENTATION_END } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include <uuid.h> | ||
#include <iostream> | ||
|
||
int main() { | ||
char sguid[37]; | ||
uuid_t uuid = {0}; | ||
uuid_generate(uuid); | ||
uuid_unparse(uuid, sguid); | ||
std::cout << sguid << std::endl; | ||
return 0; | ||
} |