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.
Merge branch 'develop' of https://github.com/ruslo/hunter into develo…
…p_sdl2
- Loading branch information
Showing
38 changed files
with
1,505 additions
and
2 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,44 @@ | ||
include(CMakePackageConfigHelpers) | ||
include(hunter_test_string_not_empty) | ||
|
||
function(hunter_install_libsodium_config) | ||
|
||
hunter_test_string_not_empty("${HUNTER_libsodium_VERSION}") | ||
hunter_test_string_not_empty("${HUNTER_PACKAGE_INSTALL_PREFIX}") | ||
hunter_test_string_not_empty("${HUNTER_SELF}") | ||
|
||
set(templates "${HUNTER_SELF}/cmake/templates") | ||
set(configs "${HUNTER_PACKAGE_INSTALL_PREFIX}/lib/cmake/libsodium") | ||
|
||
if(NOT BUILD_SHARED_LIBS) | ||
set(TARGET_INTERFACE_COMPILE_DEFINITIONS "INTERFACE_COMPILE_DEFINITIONS SODIUM_STATIC") | ||
endif() | ||
|
||
write_basic_package_version_file("${configs}/libsodiumConfig.cmake" VERSION "${HUNTER_libsodium_VERSION}" COMPATIBILITY ExactVersion) | ||
|
||
configure_file( | ||
"${templates}/libsodiumConfig.cmake.in" | ||
"${configs}/libsodiumConfig.cmake" | ||
@ONLY | ||
) | ||
|
||
endfunction() | ||
|
||
|
||
function(hunter_install_libsodium_targets) | ||
|
||
hunter_test_string_not_empty("${HUNTER_PACKAGE_INSTALL_PREFIX}") | ||
hunter_test_string_not_empty("${HUNTER_SELF}") | ||
hunter_test_string_not_empty("${TARGET_CONFIGURATION}") | ||
hunter_test_string_not_empty("${TARGET_LIB_FILE}") | ||
|
||
set(templates "${HUNTER_SELF}/cmake/templates") | ||
set(configs "${HUNTER_PACKAGE_INSTALL_PREFIX}/lib/cmake/libsodium") | ||
|
||
configure_file( | ||
"${templates}/libsodiumTargets.cmake.in" | ||
"${configs}/libsodiumTargets-${TARGET_CONFIGURATION}.cmake" | ||
@ONLY | ||
) | ||
|
||
endfunction() |
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,45 @@ | ||
# Copyright (c) 2016, 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 | ||
Assimp | ||
VERSION | ||
3.2-p1 | ||
URL | ||
"https://github.com/hunter-packages/assimp/archive/v3.2-p1.tar.gz" | ||
SHA1 | ||
018ce1cc19f0cf89dd5157cfbfa1c2925eab6926 | ||
) | ||
|
||
hunter_add_version( | ||
PACKAGE_NAME | ||
Assimp | ||
VERSION | ||
3.2-p0 | ||
URL | ||
"https://github.com/hunter-packages/assimp/archive/v3.2-p0.tar.gz" | ||
SHA1 | ||
a3f46eb24bc48cacee9f21b1ea4f4a0e3122b847 | ||
) | ||
|
||
hunter_cmake_args( | ||
Assimp | ||
CMAKE_ARGS | ||
ASSIMP_BUILD_ASSIMP_TOOLS=OFF | ||
ASSIMP_BUILD_SAMPLES=OFF | ||
ASSIMP_BUILD_TESTS=OFF | ||
ASSIMP_ENABLE_BOOST_WORKAROUND=OFF | ||
) | ||
|
||
hunter_pick_scheme(DEFAULT url_sha1_cmake) | ||
hunter_cacheable(Assimp) | ||
hunter_download(PACKAGE_NAME Assimp) |
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,35 @@ | ||
# Copyright (c) 2016, Ruslan Baratov | ||
# All rights reserved. | ||
|
||
# !!! DO NOT PLACE HEADER GUARDS HERE !!! | ||
|
||
include(hunter_add_version) | ||
include(hunter_cacheable) | ||
include(hunter_download) | ||
include(hunter_pick_scheme) | ||
|
||
hunter_add_version( | ||
PACKAGE_NAME | ||
convertutf | ||
VERSION | ||
"1.0.1" | ||
URL | ||
"https://github.com/hunter-packages/convertutf/archive/v1.0.1.tar.gz" | ||
SHA1 | ||
83c1f454b3d6789d5048e1198577092f1a77c7a2 | ||
) | ||
|
||
hunter_add_version( | ||
PACKAGE_NAME | ||
convertutf | ||
VERSION | ||
"1.0.0" | ||
URL | ||
"https://github.com/hunter-packages/convertutf/archive/v1.0.0.tar.gz" | ||
SHA1 | ||
757b75fff721260620050bc54096150ffd335672 | ||
) | ||
|
||
hunter_pick_scheme(DEFAULT url_sha1_cmake) | ||
hunter_cacheable(convertutf) | ||
hunter_download(PACKAGE_NAME convertutf) |
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,24 @@ | ||
# Copyright (c) 2016, Ruslan Baratov | ||
# All rights reserved. | ||
|
||
# !!! DO NOT PLACE HEADER GUARDS HERE !!! | ||
|
||
include(hunter_add_version) | ||
include(hunter_cacheable) | ||
include(hunter_download) | ||
include(hunter_pick_scheme) | ||
|
||
hunter_add_version( | ||
PACKAGE_NAME | ||
irrXML | ||
VERSION | ||
"1.2" | ||
URL | ||
"https://github.com/hunter-packages/irrXML/archive/1.2.tar.gz" | ||
SHA1 | ||
726c1461d51fda1908b4050603682de680925b44 | ||
) | ||
|
||
hunter_pick_scheme(DEFAULT url_sha1_cmake) | ||
hunter_cacheable(irrXML) | ||
hunter_download(PACKAGE_NAME irrXML) |
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,26 @@ | ||
# !!! DO NOT PLACE HEADER GUARDS HERE !!! | ||
|
||
# Load used modules | ||
include(hunter_add_version) | ||
include(hunter_download) | ||
include(hunter_pick_scheme) | ||
include(hunter_cacheable) | ||
|
||
hunter_add_version( | ||
PACKAGE_NAME | ||
libsodium | ||
VERSION | ||
"1.0.10" | ||
URL | ||
"https://github.com/jedisct1/libsodium/archive/1.0.10.tar.gz" | ||
SHA1 | ||
00a999629f1f8f500cef29818135f8f889f44e41 | ||
) | ||
|
||
if(MSVC) | ||
hunter_pick_scheme(DEFAULT url_sha1_libsodium_msbuild) | ||
else() | ||
hunter_pick_scheme(DEFAULT url_sha1_libsodium_autogen_autotools) | ||
endif() | ||
hunter_cacheable(libsodium) | ||
hunter_download(PACKAGE_NAME libsodium) |
Oops, something went wrong.