Changeset View
Changeset View
Standalone View
Standalone View
src/qt/CMakeLists.txt
# Copyright (c) 2018 The Bitcoin developers | # Copyright (c) 2018 The Bitcoin developers | ||||
project(bitcoin-qt) | project(bitcoin-qt) | ||||
# This ensure that AUTOMOC doesn't run on generated files. | # This ensure that AUTOMOC doesn't run on generated files. | ||||
cmake_policy(SET CMP0071 OLD) | cmake_policy(SET CMP0071 OLD) | ||||
include(BrewHelper) | include(BrewHelper) | ||||
find_brew_prefix(QT5_PREFIX qt5) | find_brew_prefix(QT5_PREFIX qt5) | ||||
set(QT_REQUIRED_COMPONENTS Core Widgets Network Test) | set(QT_REQUIRED_COMPONENTS Core Widgets Network Test) | ||||
if(ENABLE_NOTIFICATIONS) | if(ENABLE_DBUS_NOTIFICATIONS) | ||||
list(APPEND QT_REQUIRED_COMPONENTS DBus) | list(APPEND QT_REQUIRED_COMPONENTS DBus) | ||||
endif() | endif() | ||||
find_package(Qt5 5.5.1 COMPONENTS ${QT_REQUIRED_COMPONENTS} REQUIRED HINTS "${QT5_PREFIX}") | find_package(Qt5 5.5.1 COMPONENTS ${QT_REQUIRED_COMPONENTS} REQUIRED HINTS "${QT5_PREFIX}") | ||||
# Localisation | # Localisation | ||||
add_subdirectory(locale) | add_subdirectory(locale) | ||||
▲ Show 20 Lines • Show All 202 Lines • ▼ Show 20 Lines | |||||
endif() | endif() | ||||
target_link_libraries(bitcoin-qt-base | target_link_libraries(bitcoin-qt-base | ||||
server | server | ||||
rpcclient | rpcclient | ||||
Qt5::Widgets | Qt5::Widgets | ||||
Qt5::Network | Qt5::Network | ||||
) | ) | ||||
if(ENABLE_NOTIFICATIONS) | if(ENABLE_DBUS_NOTIFICATIONS) | ||||
target_link_libraries(bitcoin-qt-base Qt5::DBus) | target_link_libraries(bitcoin-qt-base Qt5::DBus) | ||||
endif() | endif() | ||||
if(ENABLE_BIP70) | if(ENABLE_BIP70) | ||||
# Do protobuf codegen | # Do protobuf codegen | ||||
find_package(Protobuf REQUIRED) | find_package(Protobuf REQUIRED) | ||||
protobuf_generate_cpp(PROTOBUF_SOURCES PROTOBUF_HEADERS paymentrequest.proto) | protobuf_generate_cpp(PROTOBUF_SOURCES PROTOBUF_HEADERS paymentrequest.proto) | ||||
▲ Show 20 Lines • Show All 355 Lines • Show Last 20 Lines |