Use BUILD_WITH_QT6

This commit is contained in:
Jonas Kvinge 2020-10-01 19:47:21 +02:00
parent b6abc34461
commit 52d42ef2a8
1 changed files with 3 additions and 3 deletions

View File

@ -607,7 +607,7 @@ if(UNIX AND HAVE_DBUS)
HEADERS device/udisks2lister.h HEADERS device/udisks2lister.h
) )
if (Qt6Core_FOUND) if (BUILD_WITH_QT6)
# MPRIS 2.0 DBUS interfaces # MPRIS 2.0 DBUS interfaces
qt6_add_dbus_adaptor(SOURCES qt6_add_dbus_adaptor(SOURCES
@ -704,7 +704,7 @@ if(UNIX AND HAVE_DBUS)
PROPERTIES NO_NAMESPACE dbus/udisks2drive INCLUDE dbus/metatypes.h) PROPERTIES NO_NAMESPACE dbus/udisks2drive INCLUDE dbus/metatypes.h)
set_source_files_properties(dbus/org.freedesktop.UDisks2.Job.xml set_source_files_properties(dbus/org.freedesktop.UDisks2.Job.xml
PROPERTIES NO_NAMESPACE dbus/udisks2job INCLUDE dbus/metatypes.h) PROPERTIES NO_NAMESPACE dbus/udisks2job INCLUDE dbus/metatypes.h)
if(Qt6Core_FOUND) if(BUILD_WITH_QT6)
qt6_add_dbus_interface(SOURCES qt6_add_dbus_interface(SOURCES
dbus/org.freedesktop.DBus.ObjectManager.xml dbus/org.freedesktop.DBus.ObjectManager.xml
dbus/objectmanager) dbus/objectmanager)
@ -987,7 +987,7 @@ optional_source(HAVE_MOODBAR
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/version.h.in ${CMAKE_CURRENT_BINARY_DIR}/version.h) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/version.h.in ${CMAKE_CURRENT_BINARY_DIR}/version.h)
if(Qt6Core_FOUND) if(BUILD_WITH_QT6)
qt6_wrap_cpp(MOC ${HEADERS}) qt6_wrap_cpp(MOC ${HEADERS})
qt6_wrap_ui(UIC ${UI}) qt6_wrap_ui(UIC ${UI})
qt6_add_resources(QRC ${RESOURCES}) qt6_add_resources(QRC ${RESOURCES})