cmake: Add WITH_DBUS option

This commit is contained in:
Hennadii Stepanov
2024-07-24 13:19:00 +01:00
parent 5bb5a4bc75
commit 10fcc668a3
3 changed files with 13 additions and 0 deletions

View File

@@ -214,6 +214,10 @@ if(ENABLE_WALLET)
)
endif()
if(WITH_DBUS)
target_link_libraries(bitcoinqt PRIVATE Qt5::DBus)
endif()
if(qt_lib_type STREQUAL "STATIC_LIBRARY")
# We want to define static plugins to link ourselves, thus preventing
# automatic linking against a "sane" set of default static plugins.