Set up linking against kpmcore.
This commit is contained in:
parent
80ff27a804
commit
93352cf4be
@ -1,18 +1,17 @@
|
|||||||
project( PartitionModule )
|
# ECM used for something in the tests directory
|
||||||
|
|
||||||
if( WITH_PARTITIONMANAGER )
|
|
||||||
|
|
||||||
add_subdirectory( partitionmanager/calamares )
|
|
||||||
|
|
||||||
## ECM
|
|
||||||
find_package(ECM 0.0.13 REQUIRED NO_MODULE)
|
find_package(ECM 0.0.13 REQUIRED NO_MODULE)
|
||||||
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_MODULE_PATH})
|
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_MODULE_PATH})
|
||||||
include(KDEInstallDirs)
|
|
||||||
include(GenerateExportHeader)
|
|
||||||
|
|
||||||
|
# KF5::CoreAddons seems to be used for *something* in this module, not sure what
|
||||||
|
include(KDEInstallDirs) # this seems to be necessary for KF5::CoreAddons
|
||||||
|
include(GenerateExportHeader) # this too, because KDE frameworks always want omnomnom more stuff
|
||||||
find_package( KF5 REQUIRED CoreAddons )
|
find_package( KF5 REQUIRED CoreAddons )
|
||||||
|
|
||||||
add_definitions( -DCALAMARES )
|
# These are needed because KPMcore links publicly against ConfigCore, I18n, IconThemes, KIOCore and Service
|
||||||
|
find_package( KF5 REQUIRED Config I18n IconThemes KIO Service )
|
||||||
|
|
||||||
|
# TODO: we should require a minimum version, when KPMcore gets meaningful versioning
|
||||||
|
find_package( KPMcore REQUIRED )
|
||||||
|
|
||||||
add_subdirectory( tests )
|
add_subdirectory( tests )
|
||||||
|
|
||||||
@ -60,10 +59,8 @@ calamares_add_plugin( partition
|
|||||||
gui/PartitionPage.ui
|
gui/PartitionPage.ui
|
||||||
gui/ReplacePage.ui
|
gui/ReplacePage.ui
|
||||||
LINK_LIBRARIES
|
LINK_LIBRARIES
|
||||||
calapm
|
kpmcore
|
||||||
calamaresui
|
calamaresui
|
||||||
KF5::CoreAddons
|
KF5::CoreAddons
|
||||||
SHARED_LIB
|
SHARED_LIB
|
||||||
)
|
)
|
||||||
|
|
||||||
endif( WITH_PARTITIONMANAGER )
|
|
||||||
|
Loading…
Reference in New Issue
Block a user