-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathFindBitcoin-System.cmake
More file actions
60 lines (54 loc) · 2.26 KB
/
FindBitcoin-System.cmake
File metadata and controls
60 lines (54 loc) · 2.26 KB
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
52
53
54
55
56
57
58
59
60
###############################################################################
# Copyright (c) 2014-2026 libbitcoin-protocol developers (see COPYING).
#
# GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY
#
###############################################################################
# FindBitcoin
#
# Use this module by invoking find_package with the form::
#
# find_package( Bitcoin-System
# [version] # Minimum version
# [REQUIRED] # Fail with error if bitcoin is not found
# )
#
# Defines the following for use:
#
# bitcoin_system_FOUND - true if headers and requested libraries were found
# bitcoin_system_INCLUDE_DIRS - include directories for bitcoin-system libraries
# bitcoin_system_LIBRARY_DIRS - link directories for bitcoin-system libraries
# bitcoin_system_LIBRARIES - bitcoin-system libraries to be linked
# bitcoin_system_PKG - bitcoin-system pkg-config package specification.
#
if (MSVC)
if ( Bitcoin-System_FIND_REQUIRED )
set( _bitcoin_system_MSG_STATUS "SEND_ERROR" )
else ()
set( _bitcoin_system_MSG_STATUS "STATUS" )
endif()
set( bitcoin_system_FOUND false )
message( ${_bitcoin_system_MSG_STATUS} "MSVC environment detection for 'bitcoin-system' not currently supported." )
else ()
# required
if ( Bitcoin-System_FIND_REQUIRED )
set( _bitcoin_system_REQUIRED "REQUIRED" )
endif()
# quiet
if ( Bitcoin-System_FIND_QUIETLY )
set( _bitcoin_system_QUIET "QUIET" )
endif()
# modulespec
if ( Bitcoin-System_FIND_VERSION_COUNT EQUAL 0 )
set( _bitcoin_system_MODULE_SPEC "libbitcoin-system" )
else ()
if ( Bitcoin-System_FIND_VERSION_EXACT )
set( _bitcoin_system_MODULE_SPEC_OP "=" )
else ()
set( _bitcoin_system_MODULE_SPEC_OP ">=" )
endif()
set( _bitcoin_system_MODULE_SPEC "libbitcoin-system ${_bitcoin_system_MODULE_SPEC_OP} ${Bitcoin-System_FIND_VERSION}" )
endif()
pkg_check_modules( bitcoin_system ${_bitcoin_system_REQUIRED} ${_bitcoin_system_QUIET} "${_bitcoin_system_MODULE_SPEC}" )
set( bitcoin_system_PKG "${_bitcoin_system_MODULE_SPEC}" )
endif()