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 654
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 #1838 from FredrikAppelros/pr.arabica
Add 'arabica' package
- Loading branch information
Showing
5 changed files
with
76 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,32 @@ | ||
# 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 | ||
arabica | ||
VERSION | ||
0.0.0-a202766-p0 | ||
URL | ||
"https://github.com/hunter-packages/arabica/archive/v0.0.0-a202766-p0.tar.gz" | ||
SHA1 | ||
b922f397223d54f7e6c646a862b3b4d93b0b9227 | ||
) | ||
|
||
hunter_cmake_args( | ||
arabica | ||
CMAKE_ARGS | ||
BUILD_ARABICA_EXAMPLES=OFF | ||
ARABICA_XML_BACKEND=USE_EXPAT | ||
) | ||
|
||
hunter_pick_scheme(DEFAULT url_sha1_cmake) | ||
hunter_cacheable(arabica) | ||
hunter_download(PACKAGE_NAME arabica) |
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:: | ||
|
||
arabica | ||
|
||
.. index:: | ||
single: xml ; arabica | ||
|
||
.. _pkg.arabica: | ||
|
||
arabica | ||
======= | ||
|
||
- `Official <https://github.com/jezhiggins/arabica>`__ | ||
- `Hunterized <https://github.com/hunter-packages/arabica>`__ | ||
- `Example <https://github.com/ruslo/hunter/blob/master/examples/arabica/CMakeLists.txt>`__ | ||
- Added by `Fredrik Appelros <https://github.com/FredrikAppelros>`__ (`pr-1838 <https://github.com/ruslo/hunter/pull/1838>`__) | ||
|
||
.. literalinclude:: /../examples/arabica/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-arabica) | ||
|
||
# DOCUMENTATION_START { | ||
hunter_add_package(arabica) | ||
find_package(arabica CONFIG REQUIRED) | ||
|
||
add_executable(boo boo.cpp) | ||
target_link_libraries(boo PUBLIC arabica::arabica) | ||
# 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 <arabica/SAX/XMLReader.hpp> | ||
|
||
int main() { | ||
} |