2014-07-17 17:57:55 +02:00
|
|
|
project( PartitionModule )
|
|
|
|
|
2014-06-27 17:41:55 +02:00
|
|
|
if( WITH_PARTITIONMANAGER )
|
|
|
|
|
2014-07-15 11:54:09 +02:00
|
|
|
add_subdirectory( partitionmanager/calamares )
|
|
|
|
|
2014-07-05 23:28:13 +02:00
|
|
|
## ECM
|
|
|
|
find_package(ECM 0.0.13 REQUIRED NO_MODULE)
|
|
|
|
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_MODULE_PATH})
|
|
|
|
include(KDEInstallDirs)
|
|
|
|
include(GenerateExportHeader)
|
|
|
|
|
|
|
|
find_package( KF5 REQUIRED CoreAddons )
|
2014-07-03 18:00:40 +02:00
|
|
|
|
2014-06-27 17:25:39 +02:00
|
|
|
add_definitions( -DCALAMARES )
|
|
|
|
|
2014-07-17 17:57:55 +02:00
|
|
|
add_subdirectory( tests )
|
|
|
|
|
2014-07-03 18:00:40 +02:00
|
|
|
include_directories( ${PROJECT_BINARY_DIR}/src/libcalamaresui )
|
2014-09-03 18:09:37 +02:00
|
|
|
|
2014-06-27 17:25:39 +02:00
|
|
|
calamares_add_plugin( partition
|
|
|
|
TYPE viewmodule
|
|
|
|
EXPORT_MACRO PLUGINDLLEXPORT_PRO
|
|
|
|
SOURCES
|
2014-08-08 13:25:56 +02:00
|
|
|
core/BootLoaderModel.cpp
|
|
|
|
core/ColorUtils.cpp
|
|
|
|
core/DeviceModel.cpp
|
|
|
|
core/PartitionCoreModule.cpp
|
|
|
|
core/PartitionInfo.cpp
|
|
|
|
core/PartitionIterator.cpp
|
|
|
|
core/PartitionModel.cpp
|
|
|
|
core/PMUtils.cpp
|
2014-09-03 18:09:37 +02:00
|
|
|
gui/ChoicePage.cpp
|
2014-08-08 13:25:56 +02:00
|
|
|
gui/CreatePartitionDialog.cpp
|
|
|
|
gui/EditExistingPartitionDialog.cpp
|
2014-09-04 19:37:30 +02:00
|
|
|
gui/EraseDiskPage.cpp
|
2014-08-08 13:25:56 +02:00
|
|
|
gui/PartitionPage.cpp
|
|
|
|
gui/PartitionPreview.cpp
|
|
|
|
gui/PartitionSizeController.cpp
|
|
|
|
gui/PartitionViewStep.cpp
|
2014-09-03 18:09:37 +02:00
|
|
|
gui/PrettyRadioButton.cpp
|
2014-08-08 13:25:56 +02:00
|
|
|
jobs/CheckFileSystemJob.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
|
2014-06-27 17:25:39 +02:00
|
|
|
UI
|
2014-08-08 13:25:56 +02:00
|
|
|
gui/CreatePartitionDialog.ui
|
|
|
|
gui/CreatePartitionTableDialog.ui
|
|
|
|
gui/EditExistingPartitionDialog.ui
|
|
|
|
gui/PartitionPage.ui
|
2014-06-27 17:25:39 +02:00
|
|
|
LINK_LIBRARIES
|
|
|
|
calapm
|
2014-07-03 18:00:40 +02:00
|
|
|
calamaresui
|
2014-07-02 17:25:59 +02:00
|
|
|
KF5::CoreAddons
|
2014-06-27 17:25:39 +02:00
|
|
|
SHARED_LIB
|
|
|
|
)
|
|
|
|
|
2014-06-27 17:41:55 +02:00
|
|
|
endif( WITH_PARTITIONMANAGER )
|