Do not require unused Qt and KF5 frameworks.
This commit is contained in:
parent
1a1f71bb1d
commit
75d4a3fabf
|
@ -42,26 +42,16 @@ include(GenerateExportHeader)
|
|||
|
||||
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
|
||||
Core
|
||||
DBus
|
||||
Widgets
|
||||
Sql
|
||||
Test
|
||||
)
|
||||
|
||||
# Load the frameworks we need
|
||||
find_package(KF5 REQUIRED
|
||||
Config
|
||||
DocTools
|
||||
FrameworkIntegration
|
||||
GuiAddons
|
||||
I18n
|
||||
IconThemes
|
||||
Init
|
||||
JobWidgets
|
||||
KIO
|
||||
Service
|
||||
Parts
|
||||
TextEditor
|
||||
WindowSystem
|
||||
XmlGui
|
||||
WidgetsAddons
|
||||
|
|
|
@ -35,19 +35,20 @@ ki18n_wrap_ui(partitionmanagerprivate_SRCS ${partitionmanagerprivate_UIFILES})
|
|||
kconfig_add_kcfg_files(partitionmanagerprivate_SRCS config.kcfgc)
|
||||
install(FILES config.kcfg DESTINATION ${KCFG_INSTALL_DIR})
|
||||
|
||||
|
||||
add_library(partitionmanagerprivate SHARED ${partitionmanagerprivate_SRCS})
|
||||
generate_export_header(partitionmanagerprivate EXPORT_FILE_NAME libpartitionmanager_export.h)
|
||||
target_link_libraries( partitionmanagerprivate libfatlabel
|
||||
${UUID_LIBRARIES} ${BLKID_LIBRARIES} ${LIBATASMART_LIBRARIES}
|
||||
KF5::ConfigCore
|
||||
KF5::ConfigGui
|
||||
KF5::I18n
|
||||
KF5::IconThemes
|
||||
KF5::JobWidgets
|
||||
KF5::KIOCore
|
||||
KF5::KIOWidgets
|
||||
KF5::Service
|
||||
KF5::XmlGui
|
||||
KF5::WidgetsAddons
|
||||
KF5::WindowSystem
|
||||
)
|
||||
|
||||
install(TARGETS partitionmanagerprivate ${INSTALL_TARGETS_DEFAULT_ARGS})
|
||||
|
|
Loading…
Reference in New Issue