forked from ruslo/hunter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHunter
30 lines (25 loc) · 948 Bytes
/
Hunter
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
# Copyright (c) 2013-2015, Ruslan Baratov
# All rights reserved.
if(DEFINED HUNTER_CMAKE_HUNTER_)
return()
else()
set(HUNTER_CMAKE_HUNTER_ 1)
endif()
option(HUNTER_ENABLED "Enable Hunter package manager support" ON)
option(HUNTER_STATUS_PRINT "Print working status" ON)
option(HUNTER_STATUS_DEBUG "Print a lot info" OFF)
### add cmake modules to search path
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/modules")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/find")
include(hunter_add_package) # For user project
include(hunter_initialize)
# Basic initialization - only check arguments of HunterGate. Further
# initialization (like calculating toolchain-id and config-id) will be done
# on first 'hunter_add_package' command (after first 'project' command =>
# after toolchain loaded). See 'hunter_finalize'.
#
# Related variables:
# * HUNTER_CACHED_ROOT
# * HUNTER_VERSION
# * HUNTER_SHA1
hunter_initialize()