Skip to content

Commit

Permalink
Add CppNetlibUri 1.0.5-hunter
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Mar 30, 2018
1 parent 56ceeb0 commit fd45003
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
3 changes: 1 addition & 2 deletions cmake/configs/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ hunter_config(ClangToolsExtra VERSION 4.0.1) # Clang
hunter_config(Comet VERSION 4.0.2)
hunter_config(cpr VERSION 1.3.0)
hunter_config(CppNetlib VERSION 0.10.1-hunter-3)
hunter_config(CppNetlibUri VERSION 1.0.4-hunter)
hunter_config(CppNetlibUri VERSION 1.0.5-hunter)
hunter_config(crc32c VERSION 1.0.5)
hunter_config(CsvParserCPlusPlus VERSION 1.0.1)
hunter_config(Eigen VERSION 3.3.4-p1)
Expand Down Expand Up @@ -406,4 +406,3 @@ hunter_config(zookeeper VERSION 3.4.9-p2)
hunter_config(tacopie VERSION 2.4.0-h1)
hunter_config(cpp_redis VERSION 3.5.0-h1)
hunter_config(IF97 VERSION 2.1.2)

11 changes: 11 additions & 0 deletions cmake/projects/CppNetlibUri/hunter.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ include(hunter_add_version)
include(hunter_download)
include(hunter_pick_scheme)

hunter_add_version(
PACKAGE_NAME
CppNetlibUri
VERSION
"1.0.5-hunter"
URL
"https://github.com/hunter-packages/uri/archive/v1.0.5-hunter.tar.gz"
SHA1
b61a81998e7636bc3d80668e6629b3844bb4a28a
)

hunter_add_version(
PACKAGE_NAME
CppNetlibUri
Expand Down
14 changes: 14 additions & 0 deletions examples/CppNetlibUri/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
cmake_minimum_required(VERSION 3.0)

# Emulate HunterGate:
# * https://github.com/hunter-packages/gate
include("../common.cmake")

project(download-cppnetliburi)

hunter_add_package(CppNetlibUri)

find_package(CppNetlibUri CONFIG REQUIRED)

add_executable(foo foo.cpp)
target_link_libraries(foo network-uri)
6 changes: 6 additions & 0 deletions examples/CppNetlibUri/foo.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include <network/uri/uri.hpp>

int main() {
network::uri uri;
return uri.string().length();
}

0 comments on commit fd45003

Please sign in to comment.