eed8d3b83b
Both are QAbstractItemViews and can be used on top of a PartitionModel, together or separately.
72 lines
2.4 KiB
CMake
72 lines
2.4 KiB
CMake
# ECM used for something in the tests directory
|
|
find_package(ECM 0.0.13 REQUIRED NO_MODULE)
|
|
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_MODULE_PATH})
|
|
|
|
# KF5::CoreAddons seems to be used for *something* in this module, not sure what
|
|
include(KDEInstallDirs) # this seems to be necessary for KF5::CoreAddons
|
|
include(GenerateExportHeader) # this too, because KDE frameworks always want omnomnom more stuff
|
|
find_package( KF5 REQUIRED CoreAddons )
|
|
|
|
# These are needed because KPMcore links publicly against ConfigCore, I18n, IconThemes, KIOCore and Service
|
|
find_package( KF5 REQUIRED Config I18n IconThemes KIO Service )
|
|
|
|
# TODO: we should require a minimum version, when KPMcore gets meaningful versioning
|
|
find_package( KPMcore REQUIRED )
|
|
|
|
add_subdirectory( tests )
|
|
|
|
include_directories( ${PROJECT_BINARY_DIR}/src/libcalamaresui )
|
|
|
|
calamares_add_plugin( partition
|
|
TYPE viewmodule
|
|
EXPORT_MACRO PLUGINDLLEXPORT_PRO
|
|
SOURCES
|
|
core/BootLoaderModel.cpp
|
|
core/ColorUtils.cpp
|
|
core/DeviceModel.cpp
|
|
core/KPMHelpers.cpp
|
|
core/PartitionActions.cpp
|
|
core/PartitionCoreModule.cpp
|
|
core/PartitionInfo.cpp
|
|
core/PartitionIterator.cpp
|
|
core/PartitionModel.cpp
|
|
core/PartUtils.cpp
|
|
gui/ChoicePage.cpp
|
|
gui/CreatePartitionDialog.cpp
|
|
gui/EditExistingPartitionDialog.cpp
|
|
gui/AlongsidePage.cpp
|
|
gui/DeviceInfoWidget.cpp
|
|
gui/PartitionPage.cpp
|
|
gui/PartitionBarsView.cpp
|
|
gui/PartitionLabelsView.cpp
|
|
gui/PartitionSizeController.cpp
|
|
gui/PartitionSplitterWidget.cpp
|
|
gui/PartitionViewStep.cpp
|
|
gui/PrettyRadioButton.cpp
|
|
gui/ExpandableRadioButton.cpp
|
|
gui/ReplaceWidget.cpp
|
|
jobs/CheckFileSystemJob.cpp
|
|
jobs/ClearMountsJob.cpp
|
|
jobs/ClearTempMountsJob.cpp
|
|
jobs/CreatePartitionJob.cpp
|
|
jobs/CreatePartitionTableJob.cpp
|
|
jobs/DeletePartitionJob.cpp
|
|
jobs/FillGlobalStorageJob.cpp
|
|
jobs/FormatPartitionJob.cpp
|
|
jobs/MoveFileSystemJob.cpp
|
|
jobs/PartitionJob.cpp
|
|
jobs/ResizePartitionJob.cpp
|
|
UI
|
|
gui/ChoicePage.ui
|
|
gui/CreatePartitionDialog.ui
|
|
gui/CreatePartitionTableDialog.ui
|
|
gui/EditExistingPartitionDialog.ui
|
|
gui/PartitionPage.ui
|
|
gui/ReplaceWidget.ui
|
|
LINK_LIBRARIES
|
|
kpmcore
|
|
calamaresui
|
|
KF5::CoreAddons
|
|
SHARED_LIB
|
|
)
|