source: calamares/trunk/fuentes/src/modules/partition/CMakeLists.txt @ 7538

Last change on this file since 7538 was 7538, checked in by kbut, 13 months ago

sync with github

File size: 2.4 KB
Line 
1find_package(ECM ${ECM_VERSION} REQUIRED NO_MODULE)
2
3include(KDEInstallDirs)
4include(GenerateExportHeader)
5find_package( Qt5 REQUIRED DBus )
6find_package( KF5 REQUIRED Config CoreAddons I18n WidgetsAddons )
7
8find_package( KPMcore 3.3 )
9set_package_properties(
10    KPMcore PROPERTIES
11    PURPOSE "For partitioning module"
12)
13
14if ( KPMcore_FOUND )
15    include_directories( ${KPMCORE_INCLUDE_DIR} )
16    include_directories( ${PROJECT_BINARY_DIR}/src/libcalamaresui )
17
18    add_subdirectory( tests )
19
20    calamares_add_plugin( partition
21        TYPE viewmodule
22        EXPORT_MACRO PLUGINDLLEXPORT_PRO
23        SOURCES
24            core/BootLoaderModel.cpp
25            core/ColorUtils.cpp
26            core/DeviceList.cpp
27            core/DeviceModel.cpp
28            core/KPMHelpers.cpp
29            core/PartitionActions.cpp
30            core/PartitionCoreModule.cpp
31            core/PartitionInfo.cpp
32            core/PartitionIterator.cpp
33            core/PartitionModel.cpp
34            core/PartUtils.cpp
35            gui/BootInfoWidget.cpp
36            gui/ChoicePage.cpp
37            gui/CreatePartitionDialog.cpp
38            gui/DeviceInfoWidget.cpp
39            gui/EditExistingPartitionDialog.cpp
40            gui/EncryptWidget.cpp
41            gui/PartitionPage.cpp
42            gui/PartitionBarsView.cpp
43            gui/PartitionDialogHelpers.cpp
44            gui/PartitionLabelsView.cpp
45            gui/PartitionSizeController.cpp
46            gui/PartitionSplitterWidget.cpp
47            gui/PartitionViewStep.cpp
48            gui/PrettyRadioButton.cpp
49            gui/ScanningDialog.cpp
50            gui/ReplaceWidget.cpp
51            jobs/ClearMountsJob.cpp
52            jobs/ClearTempMountsJob.cpp
53            jobs/CreatePartitionJob.cpp
54            jobs/CreatePartitionTableJob.cpp
55            jobs/DeletePartitionJob.cpp
56            jobs/FillGlobalStorageJob.cpp
57            jobs/FormatPartitionJob.cpp
58            jobs/PartitionJob.cpp
59            jobs/ResizePartitionJob.cpp
60            jobs/SetPartitionFlagsJob.cpp
61        UI
62            gui/ChoicePage.ui
63            gui/CreatePartitionDialog.ui
64            gui/CreatePartitionTableDialog.ui
65            gui/EditExistingPartitionDialog.ui
66            gui/EncryptWidget.ui
67            gui/PartitionPage.ui
68            gui/ReplaceWidget.ui
69        LINK_PRIVATE_LIBRARIES
70            kpmcore
71            calamaresui
72            KF5::CoreAddons
73        SHARED_LIB
74    )
75else()
76    calamares_skip_module( "partition (missing suitable KPMcore)" )
77endif()
Note: See TracBrowser for help on using the repository browser.