Changeset View
Changeset View
Standalone View
Standalone View
src/config/CMakeLists.txt
Show First 20 Lines • Show All 210 Lines • ▼ Show 20 Lines | |||||
# Only used in the wallet GUI | # Only used in the wallet GUI | ||||
if(ENABLE_QRCODE AND BUILD_BITCOIN_WALLET AND BUILD_BITCOIN_QT) | if(ENABLE_QRCODE AND BUILD_BITCOIN_WALLET AND BUILD_BITCOIN_QT) | ||||
find_package(QREncode REQUIRED) | find_package(QREncode REQUIRED) | ||||
set(USE_QRCODE 1 CACHE INTERNAL "QR code is enabled") | set(USE_QRCODE 1 CACHE INTERNAL "QR code is enabled") | ||||
endif() | endif() | ||||
# Try to find miniupnpc | # Try to find miniupnpc | ||||
if(ENABLE_UPNP) | if(ENABLE_UPNP) | ||||
find_package(MiniUPnPc REQUIRED) | |||||
# The expected behavior is as follow: | # The expected behavior is as follow: | ||||
# - If UPnP is enabled USE_UPNP must be defined | # - If UPnP is enabled USE_UPNP must be defined | ||||
# - If UPnP should be the default port map method, USE_UPNP should be | # - If UPnP should be the default port map method, USE_UPNP should be | ||||
# defined to 1, otherwise it should be defined to 0. | # defined to 1, otherwise it should be defined to 0. | ||||
set(USE_UPNP ${START_WITH_UPNP} CACHE INTERNAL "UPnP is enabled") | set(USE_UPNP ${START_WITH_UPNP} CACHE INTERNAL "UPnP is enabled") | ||||
endif() | endif() | ||||
if(ENABLE_NOTIFICATIONS) | if(ENABLE_NOTIFICATIONS) | ||||
set(USE_DBUS 1) | set(USE_DBUS 1) | ||||
endif() | endif() | ||||
# Generate the config | # Generate the config | ||||
configure_file(bitcoin-config.h.cmake.in bitcoin-config.h ESCAPE_QUOTES) | configure_file(bitcoin-config.h.cmake.in bitcoin-config.h ESCAPE_QUOTES) |