mirror of https://github.com/cutefishos/calamares
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.0 KiB
CMake
47 lines
1.0 KiB
CMake
if( WITH_PARTITIONMANAGER )
|
|
|
|
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
|
|
DeviceModel.cpp
|
|
PartitionModel.cpp
|
|
PartitionPage.cpp
|
|
PartitionViewPlugin.cpp
|
|
UI
|
|
PartitionPage.ui
|
|
LINK_LIBRARIES
|
|
calapm
|
|
${CALAMARES_LIBRARIES}
|
|
calamares_bin
|
|
SHARED_LIB
|
|
)
|
|
|
|
# Temporary, until views are integrated
|
|
set( partview_SRCS
|
|
DeviceModel.cpp
|
|
PartitionModel.cpp
|
|
PartitionPage.cpp
|
|
${calamares_SOURCE_DIR}/viewpages/AbstractPage.cpp
|
|
main.cpp
|
|
)
|
|
qt5_wrap_ui( partview_SRCS PartitionPage.ui )
|
|
|
|
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 )
|
|
|
|
endif( WITH_PARTITIONMANAGER )
|