-
Notifications
You must be signed in to change notification settings - Fork 0
/
cpf.cmake
49 lines (46 loc) · 1.74 KB
/
cpf.cmake
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
# ###############################################
# Setup all the configuration and versions as cache values
# so they can be overriden as needed.
set (CPF_TOOLCHAINS_VERSION
"0.0.5"
CACHE STRING "Toolchain release version."
)
set (CPF_HUNTER_GATE_FILE
"https://raw.githubusercontent.com/hunter-packages/gate/c4e5b3e4d1c97fb46ae86af7f59baac95f7f1cf0/cmake/HunterGate.cmake"
CACHE STRING "The hunter gate file to use."
)
set (CPF_HUNTER_CONFIG_FILE
"https://raw.githubusercontent.com/All8Up/cpf_cmake/master/Config.cmake"
CACHE STRING "Configuration file with hunter package information."
)
set (CPF_CMAKE_SETUP_FILE
"https://raw.githubusercontent.com/All8Up/cpf_cmake/master/Setup.cmake"
CACHE STRING "CPF cmake setup and configuration file."
)
#[[
set (HUNTER_CACHE_SERVERS
"http://all8up.selfip.com:32771/artifactory/hunter"
CACHE
STRING
"Default cache server"
)
]]
if (NOT CPF_CONFIGURATION_TYPES)
set (CPF_CONFIGURATION_TYPES Debug Release RelWithDebInfo CACHE STRING "")
endif ()
# ###############################################
# Dump details to console for debugging purposes.
message ("CPF_TOOLCHAINS_VERSION: ${CPF_TOOLCHAINS_VERSION}")
message ("CPF_HUNTER_GATE_FILE : ${CPF_HUNTER_GATE_FILE}")
message ("CPF_HUNTER_CONFIG_FILE: ${CPF_HUNTER_CONFIG_FILE}")
message ("CPF_CMAKE_SETUP_FILE : ${CPF_CMAKE_SETUP_FILE}")
# ###############################################
# Download the setup file and include it for further setup.
if (NOT EXISTS "${CMAKE_CURRENT_LIST_DIR}/_config/Setup.cmake"
OR NOT CPF_CONFIGURATION_COMPLETE)
file (DOWNLOAD
"${CPF_CMAKE_SETUP_FILE}"
"${CMAKE_CURRENT_LIST_DIR}/_config/Setup.cmake"
)
endif ()
include ("${CMAKE_CURRENT_LIST_DIR}/_config/Setup.cmake")