2014-06-27 17:41:55 +02:00
|
|
|
if( WITH_PARTITIONMANAGER )
|
|
|
|
|
2014-07-03 18:00:40 +02:00
|
|
|
find_package( KF5 CONFIG REQUIRED CoreAddons )
|
|
|
|
|
2014-06-27 17:25:39 +02:00
|
|
|
add_definitions( -DCALAMARES )
|
|
|
|
|
2014-07-03 18:00:40 +02:00
|
|
|
include_directories( ${PROJECT_BINARY_DIR}/src/libcalamaresui )
|
2014-06-27 17:25:39 +02:00
|
|
|
calamares_add_plugin( partition
|
|
|
|
TYPE viewmodule
|
|
|
|
EXPORT_MACRO PLUGINDLLEXPORT_PRO
|
|
|
|
CONFIG_FILE module.conf
|
|
|
|
SOURCES
|
2014-06-30 18:08:13 +02:00
|
|
|
CreatePartitionDialog.cpp
|
|
|
|
CreatePartitionJob.cpp
|
2014-07-02 15:49:35 +02:00
|
|
|
DeletePartitionJob.cpp
|
2014-06-27 17:25:39 +02:00
|
|
|
DeviceModel.cpp
|
2014-07-01 10:58:54 +02:00
|
|
|
PartitionCoreModule.cpp
|
2014-06-27 17:25:39 +02:00
|
|
|
PartitionModel.cpp
|
|
|
|
PartitionPage.cpp
|
2014-06-30 13:24:59 +02:00
|
|
|
PartitionViewStep.cpp
|
2014-06-30 15:03:29 +02:00
|
|
|
PMUtils.cpp
|
2014-06-27 17:25:39 +02:00
|
|
|
UI
|
2014-06-30 18:08:13 +02:00
|
|
|
CreatePartitionDialog.ui
|
2014-06-27 17:25:39 +02:00
|
|
|
PartitionPage.ui
|
|
|
|
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
|
|
|
|
)
|
|
|
|
|
|
|
|
# Temporary, until views are integrated
|
|
|
|
set( partview_SRCS
|
2014-06-30 18:08:13 +02:00
|
|
|
CreatePartitionDialog.cpp
|
|
|
|
CreatePartitionJob.cpp
|
2014-07-02 15:49:35 +02:00
|
|
|
DeletePartitionJob.cpp
|
2014-06-27 17:25:39 +02:00
|
|
|
DeviceModel.cpp
|
2014-06-30 13:37:46 +02:00
|
|
|
PartitionCoreModule.cpp
|
2014-06-27 17:25:39 +02:00
|
|
|
PartitionModel.cpp
|
|
|
|
PartitionPage.cpp
|
2014-06-30 15:03:29 +02:00
|
|
|
PMUtils.cpp
|
2014-06-27 17:25:39 +02:00
|
|
|
main.cpp
|
|
|
|
)
|
2014-06-30 18:08:13 +02:00
|
|
|
qt5_wrap_ui( partview_SRCS
|
|
|
|
CreatePartitionDialog.ui
|
|
|
|
PartitionPage.ui
|
|
|
|
)
|
2014-06-27 17:25:39 +02:00
|
|
|
|
|
|
|
include_directories( ${CMAKE_CURRENT_BINARY_DIR} )
|
|
|
|
|
|
|
|
add_executable( partview ${partview_SRCS} )
|
|
|
|
target_link_libraries( partview
|
|
|
|
calapm
|
|
|
|
${CALAMARES_LIBRARIES}
|
|
|
|
Qt5::Widgets
|
|
|
|
Qt5::Gui
|
|
|
|
Qt5::Core
|
2014-07-02 17:25:59 +02:00
|
|
|
KF5::CoreAddons
|
2014-06-27 17:25:39 +02:00
|
|
|
)
|
|
|
|
set_target_properties( partview PROPERTIES AUTOMOC TRUE )
|
2014-06-27 17:41:55 +02:00
|
|
|
|
|
|
|
endif( WITH_PARTITIONMANAGER )
|