This repository has been archived by the owner on Apr 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 655
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1837 from FredrikAppelros/pr.yajl
Add 'YAJL' package
- Loading branch information
Showing
5 changed files
with
75 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright (c) 2016-2019, Ruslan Baratov | ||
# All rights reserved. | ||
|
||
# !!! DO NOT PLACE HEADER GUARDS HERE !!! | ||
|
||
include(hunter_add_version) | ||
include(hunter_cacheable) | ||
include(hunter_cmake_args) | ||
include(hunter_download) | ||
include(hunter_pick_scheme) | ||
|
||
hunter_add_version( | ||
PACKAGE_NAME | ||
YAJL | ||
VERSION | ||
2.1.0-p0 | ||
URL | ||
"https://github.com/hunter-packages/yajl/archive/v2.1.0-p0.tar.gz" | ||
SHA1 | ||
d2dc11da34efb5148e6b84f43ba08783f1aefef4 | ||
) | ||
|
||
hunter_cmake_args( | ||
YAJL | ||
CMAKE_ARGS | ||
YAJL_BUILD_TOOLS=OFF | ||
) | ||
|
||
hunter_pick_scheme(DEFAULT url_sha1_cmake) | ||
hunter_cacheable(YAJL) | ||
hunter_download(PACKAGE_NAME YAJL) |
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,21 @@ | ||
.. spelling:: | ||
|
||
YAJL | ||
|
||
.. index:: | ||
single: json ; YAJL | ||
|
||
.. _pkg.YAJL: | ||
|
||
YAJL | ||
==== | ||
|
||
- `Official <https://github.com/lloyd/yajl>`__ | ||
- `Hunterized <https://github.com/hunter-packages/yajl>`__ | ||
- `Example <https://github.com/ruslo/hunter/blob/master/examples/yajl/CMakeLists.txt>`__ | ||
- Added by `Fredrik Appelros <https://github.com/FredrikAppelros>`__ (`pr-1837 <https://github.com/ruslo/hunter/pull/1837>`__) | ||
|
||
.. literalinclude:: /../examples/YAJL/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright (c) 2016-2019, Ruslan Baratov | ||
# All rights reserved. | ||
|
||
cmake_minimum_required(VERSION 3.2) | ||
|
||
# Emulate HunterGate: | ||
# * https://github.com/hunter-packages/gate | ||
include("../common.cmake") | ||
|
||
project(download-YAJL) | ||
|
||
# DOCUMENTATION_START { | ||
hunter_add_package(YAJL) | ||
find_package(YAJL CONFIG REQUIRED) | ||
|
||
add_executable(boo boo.cpp) | ||
target_link_libraries(boo PUBLIC YAJL::yajl) | ||
# 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,4 @@ | ||
#include <yajl/yajl_common.h> | ||
|
||
int main() { | ||
} |