2014-06-27 17:41:55 +02:00
|
|
|
if( WITH_PARTITIONMANAGER )
|
|
|
|
|
2014-06-27 17:25:39 +02:00
|
|
|
add_definitions( -DCALAMARES )
|
|
|
|
|
|
|
|
include_directories( ${PROJECT_BINARY_DIR}/src/calamares )
|
|
|
|
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-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
|
|
|
|
${CALAMARES_LIBRARIES}
|
|
|
|
calamares_bin
|
|
|
|
SHARED_LIB
|
|
|
|
)
|
|
|
|
|
|
|
|
# Temporary, until views are integrated
|
|
|
|
set( partview_SRCS
|
2014-06-30 18:08:13 +02:00
|
|
|
CreatePartitionDialog.cpp
|
|
|
|
CreatePartitionJob.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
|
|
|
${calamares_SOURCE_DIR}/viewpages/AbstractPage.cpp
|
|
|
|
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
|
|
|
|
)
|
|
|
|
set_target_properties( partview PROPERTIES AUTOMOC TRUE )
|
2014-06-27 17:41:55 +02:00
|
|
|
|
|
|
|
endif( WITH_PARTITIONMANAGER )
|