Skip to content

Commit

Permalink
add libtommath
Browse files Browse the repository at this point in the history
  • Loading branch information
wheybags committed Feb 19, 2017
1 parent 2e7cbd4 commit 334ad09
Show file tree
Hide file tree
Showing 4 changed files with 1,029 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmake/configs/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ hunter_config(SQLite3 VERSION autoconf-3080803) #R-Tree enabled
hunter_config(Sober VERSION 0.1.3)
hunter_config(Sugar VERSION 1.2.2)
hunter_config(TIFF VERSION 4.0.2-p3)
hunter_config(tommath VERSION 1.0-p1)
hunter_config(WTL VERSION 9.1.5321)
hunter_config(Washer VERSION 0.1.2)
hunter_config(WinSparkle VERSION 0.4.0)
Expand Down
27 changes: 27 additions & 0 deletions cmake/projects/tommath/hunter.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# cmake/projects/Example/hunter.cmake

# !!! DO NOT PLACE HEADER GUARDS HERE !!!

# Load used modules
include(hunter_add_version)
include(hunter_download)
include(hunter_pick_scheme)
include(hunter_cacheable)

# List of versions here...
hunter_add_version(
PACKAGE_NAME
tommath
VERSION
"1.0-p1"
URL
"https://github.com/wheybags/libtommath/archive/v1.0_hunter.tar.gz"
SHA1
52d0952cb516a67b9f5b66e260a940273cb76e5c
)

# Pick a download scheme
hunter_pick_scheme(DEFAULT url_sha1_cmake) # use scheme for cmake projects

hunter_cacheable(tommath)
hunter_download(PACKAGE_NAME tommath)
14 changes: 14 additions & 0 deletions examples/tommath/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(example-libtommath)

hunter_add_package(tommath)

find_package(tommath CONFIG REQUIRED)

add_executable(example-libtommath main.c)
target_link_libraries(example-libtommath tommath::tommath)
Loading

0 comments on commit 334ad09

Please sign in to comment.