Changeset View
Changeset View
Standalone View
Standalone View
src/qt/CMakeLists.txt
Show First 20 Lines • Show All 104 Lines • ▼ Show 20 Lines | add_library(bitcoin-qt-base | ||||
# Translations | # Translations | ||||
${BITCOIN_QM_FILES} | ${BITCOIN_QM_FILES} | ||||
# Handle qrc files | # Handle qrc files | ||||
${QRC_BITCOIN_CPP} | ${QRC_BITCOIN_CPP} | ||||
qrc_bitcoin_locale.cpp | qrc_bitcoin_locale.cpp | ||||
) | ) | ||||
if(ENABLE_BIP70) | |||||
# Do protobuf codegen | |||||
find_package(Protobuf REQUIRED) | |||||
protobuf_generate_cpp(PROTOBUF_SOURCES PROTOBUF_HEADERS paymentrequest.proto) | |||||
target_sources(bitcoin-qt-base | |||||
PRIVATE | |||||
# Protobuf codegen | |||||
${PROTOBUF_HEADERS} | |||||
${PROTOBUF_SOURCES} | |||||
) | |||||
target_include_directories(bitcoin-qt-base PUBLIC ${Protobuf_INCLUDE_DIRS}) | |||||
target_link_libraries(bitcoin-qt-base | |||||
OpenSSL::SSL | |||||
${Protobuf_LIBRARIES} | |||||
) | |||||
endif() | |||||
# Add the minimal integration plugin, and other plugins according to the target | # Add the minimal integration plugin, and other plugins according to the target | ||||
# platform. | # platform. | ||||
set(QT_PLUGIN_COMPONENTS QMinimalIntegrationPlugin) | set(QT_PLUGIN_COMPONENTS QMinimalIntegrationPlugin) | ||||
set(QT_PLUGIN_PLATFORM_DEFINITIONS -DQT_QPA_PLATFORM_MINIMAL=1) | set(QT_PLUGIN_PLATFORM_DEFINITIONS -DQT_QPA_PLATFORM_MINIMAL=1) | ||||
# Linux support | # Linux support | ||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") | if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") | ||||
list(APPEND QT_PLUGIN_COMPONENTS QXcbIntegrationPlugin) | list(APPEND QT_PLUGIN_COMPONENTS QXcbIntegrationPlugin) | ||||
▲ Show 20 Lines • Show All 101 Lines • ▼ Show 20 Lines | target_link_libraries(bitcoin-qt-base | ||||
rpcclient | rpcclient | ||||
Qt5::Widgets | Qt5::Widgets | ||||
Qt5::Network | Qt5::Network | ||||
) | ) | ||||
if(ENABLE_NOTIFICATIONS) | if(ENABLE_NOTIFICATIONS) | ||||
target_link_libraries(bitcoin-qt-base Qt5::DBus) | target_link_libraries(bitcoin-qt-base Qt5::DBus) | ||||
endif() | endif() | ||||
if(ENABLE_BIP70) | |||||
# Do protobuf codegen | |||||
find_package(Protobuf REQUIRED) | |||||
protobuf_generate_cpp(PROTOBUF_SOURCES PROTOBUF_HEADERS paymentrequest.proto) | |||||
target_sources(bitcoin-qt-base | |||||
PRIVATE | |||||
# Protobuf codegen | |||||
${PROTOBUF_HEADERS} | |||||
${PROTOBUF_SOURCES} | |||||
) | |||||
target_include_directories(bitcoin-qt-base PUBLIC ${Protobuf_INCLUDE_DIRS}) | |||||
target_link_libraries(bitcoin-qt-base | |||||
OpenSSL::SSL | |||||
${Protobuf_LIBRARIES} | |||||
) | |||||
endif() | |||||
# Wallet | # Wallet | ||||
if(BUILD_BITCOIN_WALLET) | if(BUILD_BITCOIN_WALLET) | ||||
# Automoc option. | # Automoc option. | ||||
set(AUTOMOC_MOC_OPTIONS -DENABLE_WALLET=1) | set(AUTOMOC_MOC_OPTIONS -DENABLE_WALLET=1) | ||||
# Add wallet functionality to bitcoin-qt | # Add wallet functionality to bitcoin-qt | ||||
target_sources(bitcoin-qt-base | target_sources(bitcoin-qt-base | ||||
PRIVATE | PRIVATE | ||||
▲ Show 20 Lines • Show All 326 Lines • Show Last 20 Lines |