calamares/src/modules/partition/CMakeLists.txt

87 lines
2.6 KiB
CMake
Raw Normal View History

find_package(ECM 5.10.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_MODULE_PATH})
include(KDEInstallDirs)
include(GenerateExportHeader)
find_package( KF5 REQUIRED CoreAddons )
2015-07-01 18:57:09 +02:00
# These are needed because KPMcore links publicly against ConfigCore, I18n, IconThemes, KIOCore and Service
find_package( KF5 REQUIRED Config I18n IconThemes KIO Service )
find_package( KPMcore 3.1.50 QUIET )
if ( ${KPMcore_FOUND} )
add_definitions(-DWITH_KPMCORE22)
endif()
find_package( KPMcore 3.0.3 REQUIRED )
find_library( atasmart_LIB atasmart )
find_library( blkid_LIB blkid )
if( NOT atasmart_LIB )
message( WARNING "atasmart library not found." )
endif()
if( NOT blkid_LIB )
message( WARNING "blkid library not found." )
endif()
2014-06-27 17:25:39 +02:00
include_directories( ${KPMCORE_INCLUDE_DIR} )
include_directories( ${PROJECT_BINARY_DIR}/src/libcalamaresui )
add_subdirectory( tests )
2014-06-27 17:25:39 +02:00
calamares_add_plugin( partition
TYPE viewmodule
EXPORT_MACRO PLUGINDLLEXPORT_PRO
SOURCES
core/BootLoaderModel.cpp
core/ColorUtils.cpp
core/DeviceList.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
2016-04-22 16:00:19 +02:00
gui/BootInfoWidget.cpp
gui/ChoicePage.cpp
gui/CreatePartitionDialog.cpp
gui/DeviceInfoWidget.cpp
2016-04-22 16:00:19 +02:00
gui/EditExistingPartitionDialog.cpp
gui/EncryptWidget.cpp
gui/PartitionPage.cpp
gui/PartitionBarsView.cpp
gui/PartitionLabelsView.cpp
gui/PartitionSizeController.cpp
gui/PartitionSplitterWidget.cpp
gui/PartitionViewStep.cpp
gui/PrettyRadioButton.cpp
2015-12-30 16:36:30 +01:00
gui/ScanningDialog.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
2016-03-04 19:10:16 +01:00
jobs/SetPartitionFlagsJob.cpp
2014-06-27 17:25:39 +02:00
UI
2015-09-30 17:24:37 +02:00
gui/ChoicePage.ui
gui/CreatePartitionDialog.ui
gui/CreatePartitionTableDialog.ui
gui/EditExistingPartitionDialog.ui
2016-04-22 16:00:19 +02:00
gui/EncryptWidget.ui
gui/PartitionPage.ui
gui/ReplaceWidget.ui
2016-12-07 16:37:29 +01:00
LINK_PRIVATE_LIBRARIES
2015-07-01 18:57:09 +02:00
kpmcore
calamaresui
2014-07-02 17:25:59 +02:00
KF5::CoreAddons
2014-06-27 17:25:39 +02:00
SHARED_LIB
)