Changeset View
Changeset View
Standalone View
Standalone View
src/qt/CMakeLists.txt
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | |||||
set(CMAKE_CURRENT_BINARY_DIR ${SAVE_CMAKE_CURRENT_BINARY_DIR}) | set(CMAKE_CURRENT_BINARY_DIR ${SAVE_CMAKE_CURRENT_BINARY_DIR}) | ||||
# Qt MOC | # Qt MOC | ||||
set(CMAKE_AUTOMOC ON) | set(CMAKE_AUTOMOC ON) | ||||
# Handle qrc resources | # Handle qrc resources | ||||
qt5_add_resources(QRC_BITCOIN_CPP bitcoin.qrc) | qt5_add_resources(QRC_BITCOIN_CPP bitcoin.qrc) | ||||
# Do protobuf codegen | |||||
find_package(Protobuf REQUIRED) | |||||
protobuf_generate_cpp(PROTOBUF_SOURCES PROTOBUF_HEADERS paymentrequest.proto) | |||||
add_library(bitcoin-qt-base | add_library(bitcoin-qt-base | ||||
bantablemodel.cpp | bantablemodel.cpp | ||||
bitcoin.cpp | bitcoin.cpp | ||||
bitcoinaddressvalidator.cpp | bitcoinaddressvalidator.cpp | ||||
bitcoinamountfield.cpp | bitcoinamountfield.cpp | ||||
bitcoingui.cpp | bitcoingui.cpp | ||||
bitcoinunits.cpp | bitcoinunits.cpp | ||||
clientmodel.cpp | clientmodel.cpp | ||||
Show All 12 Lines | add_library(bitcoin-qt-base | ||||
rpcconsole.cpp | rpcconsole.cpp | ||||
splashscreen.cpp | splashscreen.cpp | ||||
trafficgraphwidget.cpp | trafficgraphwidget.cpp | ||||
utilitydialog.cpp | utilitydialog.cpp | ||||
# Handle ui files | # Handle ui files | ||||
${UI_GENERATED_HEADERS} | ${UI_GENERATED_HEADERS} | ||||
# Protobuf codegen | |||||
${PROTOBUF_HEADERS} | |||||
${PROTOBUF_SOURCES} | |||||
# 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_include_directories(bitcoin-qt-base PUBLIC ${Protobuf_INCLUDE_DIRS}) | ||||
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") | ||||
▲ Show 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | if(QT_STATIC_BUILD) | ||||
endforeach() | endforeach() | ||||
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 | ||||
OpenSSL::SSL | |||||
${Protobuf_LIBRARIES} | |||||
) | ) | ||||
if(ENABLE_NOTIFICATIONS) | if(ENABLE_NOTIFICATIONS) | ||||
target_link_libraries(bitcoin-qt-base Qt5::DBus) | target_link_libraries(bitcoin-qt-base Qt5::DBus) | ||||
endif() | 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 | ||||
addressbookpage.cpp | addressbookpage.cpp | ||||
addresstablemodel.cpp | addresstablemodel.cpp | ||||
askpassphrasedialog.cpp | askpassphrasedialog.cpp | ||||
coincontroldialog.cpp | coincontroldialog.cpp | ||||
coincontroltreewidget.cpp | coincontroltreewidget.cpp | ||||
editaddressdialog.cpp | editaddressdialog.cpp | ||||
openuridialog.cpp | openuridialog.cpp | ||||
overviewpage.cpp | overviewpage.cpp | ||||
paymentrequestplus.cpp | |||||
paymentserver.cpp | paymentserver.cpp | ||||
receivecoinsdialog.cpp | receivecoinsdialog.cpp | ||||
receiverequestdialog.cpp | receiverequestdialog.cpp | ||||
recentrequeststablemodel.cpp | recentrequeststablemodel.cpp | ||||
sendcoinsdialog.cpp | sendcoinsdialog.cpp | ||||
sendcoinsentry.cpp | sendcoinsentry.cpp | ||||
signverifymessagedialog.cpp | signverifymessagedialog.cpp | ||||
transactiondesc.cpp | transactiondesc.cpp | ||||
transactiondescdialog.cpp | transactiondescdialog.cpp | ||||
transactionfilterproxy.cpp | transactionfilterproxy.cpp | ||||
transactionrecord.cpp | transactionrecord.cpp | ||||
transactiontablemodel.cpp | transactiontablemodel.cpp | ||||
transactionview.cpp | transactionview.cpp | ||||
walletframe.cpp | walletframe.cpp | ||||
walletmodel.cpp | walletmodel.cpp | ||||
walletmodeltransaction.cpp | walletmodeltransaction.cpp | ||||
walletview.cpp | walletview.cpp | ||||
) | ) | ||||
# Add BIP70 functionality to bitcoin-qt | |||||
if(ENABLE_BIP70) | |||||
target_link_libraries(bitcoin-qt-base | |||||
OpenSSL::SSL | |||||
${Protobuf_LIBRARIES} | |||||
) | |||||
target_sources(bitcoin-qt-base | |||||
PRIVATE | |||||
paymentrequestplus.cpp | |||||
) | |||||
endif() | |||||
target_link_libraries(bitcoin-qt-base wallet) | target_link_libraries(bitcoin-qt-base wallet) | ||||
if(ENABLE_QRCODE) | if(ENABLE_QRCODE) | ||||
target_include_directories(bitcoin-qt-base PUBLIC ${QRENCODE_INCLUDE_DIR}) | target_include_directories(bitcoin-qt-base PUBLIC ${QRENCODE_INCLUDE_DIR}) | ||||
target_link_libraries(bitcoin-qt-base ${QRENCODE_LIBRARY}) | target_link_libraries(bitcoin-qt-base ${QRENCODE_LIBRARY}) | ||||
endif() | endif() | ||||
endif() | endif() | ||||
▲ Show 20 Lines • Show All 282 Lines • Show Last 20 Lines |