-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
51 lines (42 loc) · 1.37 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
cmake_minimum_required(VERSION 3.2)
set(
HUNTER_CACHE_SERVERS
"https://github.com/undefinedev/hunter-cache"
CACHE STRING
"Default cache server"
)
# https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables
#string(COMPARE EQUAL "$ENV{TRAVIS}" "true" is_travis)
# https://www.appveyor.com/docs/environment-variables/
#string(COMPARE EQUAL "$ENV{APPVEYOR}" "True" is_appveyor)
string(COMPARE EQUAL "$ENV{GITHUB_USER_PASSWORD}" "" password_is_empty)
if(NOT password_is_empty)
option(HUNTER_RUN_UPLOAD "Upload cache binaries" ON)
endif()
set(
HUNTER_PASSWORDS_PATH
"${CMAKE_CURRENT_LIST_DIR}/cmake/Hunter/passwords.cmake"
CACHE
FILEPATH
"Hunter passwords"
)
include(cmake/HunterGate.cmake)
HunterGate(
URL "https://github.com/undefinedev/hunter/archive/v0.25.2.tar.gz"
SHA1 "e57398df0d69a5357e663507958c6e0cb675c2da"
)
project(foo)
hunter_add_package(GTest)
hunter_add_package(sugar)
hunter_add_package(Banking)
hunter_add_package(asio)
hunter_add_package(pcg)
hunter_add_package(nlohmann_json)
hunter_add_package(Android-Apk)
hunter_add_package(WTL)
hunter_add_package(Async++)
hunter_add_package(OpenCL)
hunter_add_package(OpenCL-cpp)
hunter_add_package(MySQL-client)
hunter_add_package(sqlite3)
hunter_add_package(yaml-cpp)