forked from ruslo/hunter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
71 additions
and
1 deletion.
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,17 @@ | ||
# !!! 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 oniguruma | ||
VERSION "6.8.1-p0" | ||
URL "https://github.com/hunter-packages/oniguruma/archive/v6.8.1-p0.tar.gz" | ||
SHA1 "6d82ba6bf7a7313b64ba9772622eeeb964e951fb") | ||
|
||
hunter_pick_scheme(DEFAULT url_sha1_cmake) | ||
hunter_cacheable(oniguruma) | ||
hunter_download(PACKAGE_NAME oniguruma) |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
libpcre | ||
|
||
.. index:: development ; libpcre | ||
.. index:: regex ; libpcre | ||
|
||
.. _pkg.libpcre: | ||
|
||
|
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:: | ||
|
||
oniguruma | ||
|
||
.. index:: regex ; oniguruma | ||
|
||
.. _pkg.oniguruma: | ||
|
||
oniguruma | ||
========= | ||
|
||
- `Official <https://github.com/kkos/oniguruma>`__ | ||
- `Hunterized <https://github.com/hunter-packages/oniguruma>`__ | ||
- `Example <https://github.com/ruslo/hunter/blob/master/examples/oniguruma/CMakeLists.txt>`__ | ||
- Added by `Isaac Hier <https://github.com/isaachier>`__ (`pr-1391 <https://github.com/ruslo/hunter/pull/1391>`__) | ||
|
||
.. literalinclude:: /../examples/oniguruma/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,10 @@ | ||
.. spelling:: | ||
|
||
libpcre | ||
oniguruma | ||
|
||
Regex | ||
----- | ||
|
||
- :ref:`pkg.libpcre` - Perl-compatible regular expression library | ||
- :ref:`pkg.oniguruma` - modern and flexible regular expression library |
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,12 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
|
||
include("../common.cmake") | ||
|
||
project(download-oniguruma) | ||
|
||
# DOCUMENTATION_START { | ||
hunter_add_package(oniguruma) | ||
find_package(oniguruma CONFIG REQUIRED) | ||
add_executable(main main.c) | ||
target_link_libraries(main oniguruma::onig) | ||
# 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,9 @@ | ||
#include <oniguruma.h> | ||
|
||
int main() | ||
{ | ||
const char* version; | ||
version = onig_version(); | ||
(void) version; | ||
return 0; | ||
} |