calamares/src/modules/partition/CMakeLists.txt

63 lines
1.4 KiB
CMake
Raw Normal View History

if( WITH_PARTITIONMANAGER )
find_package( KF5 CONFIG REQUIRED CoreAddons )
2014-06-27 17:25:39 +02:00
add_definitions( -DCALAMARES )
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
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
PartitionViewStep.cpp
2014-06-30 15:03:29 +02:00
PMUtils.cpp
2014-06-27 17:25:39 +02:00
UI
CreatePartitionDialog.ui
2014-06-27 17:25:39 +02:00
PartitionPage.ui
LINK_LIBRARIES
calapm
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
CreatePartitionDialog.cpp
CreatePartitionJob.cpp
2014-07-02 15:49:35 +02:00
DeletePartitionJob.cpp
2014-06-27 17:25:39 +02:00
DeviceModel.cpp
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
)
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 )
endif( WITH_PARTITIONMANAGER )