source: calamares/trunk/fuentes/src/modules/plasmalnf/CMakeLists.txt @ 7538

Last change on this file since 7538 was 7538, checked in by kbut, 17 months ago

sync with github

File size: 1.5 KB
RevLine 
[7538]1find_package(ECM ${ECM_VERSION} REQUIRED NO_MODULE)
2
3# Requires a sufficiently recent Plasma framework, but also
4# needs a runtime support component (which we don't test for).
5set( lnf_ver 5.41 )
6
7find_package( KF5Config ${lnf_ver} )
8find_package( KF5Plasma ${lnf_ver} )
9find_package( KF5Package ${lnf_ver} )
10set_package_properties(
11    KF5Config PROPERTIES
12    PURPOSE "For finding default Plasma Look-and-Feel"
13)
14set_package_properties(
15    KF5Plasma PROPERTIES
16    PURPOSE "For Plasma Look-and-Feel selection"
17)
18set_package_properties(
19    KF5Package PROPERTIES
20    PURPOSE "For Plasma Look-and-Feel selection"
21)
22
23if ( KF5Plasma_FOUND AND KF5Package_FOUND )
24    if ( KF5Config_FOUND )
25        set( option_kf5 Config )
26        set( option_defs WITH_KCONFIG )
27        # set( option_libs KF5::Config )  # Not needed anyway
28    endif()
29
30    find_package( KF5 ${lnf_ver} REQUIRED CoreAddons Plasma Package ${option_kf5} )
31
32    calamares_add_plugin( plasmalnf
33        TYPE viewmodule
34        EXPORT_MACRO PLUGINDLLEXPORT_PRO
35        COMPILE_DEFINITIONS
36            ${option_defs}
37        SOURCES
38            PlasmaLnfViewStep.cpp
39            PlasmaLnfPage.cpp
40            PlasmaLnfJob.cpp
41            ThemeWidget.cpp
42        RESOURCES
43            page_plasmalnf.qrc
44        UI
45            page_plasmalnf.ui
46        LINK_PRIVATE_LIBRARIES
47            calamaresui
48            ${option_libs}
49            KF5::Package
50            KF5::Plasma
51        SHARED_LIB
52    )
53else()
54    calamares_skip_module( "plasmalnf (missing requirements)" )
55endif()
Note: See TracBrowser for help on using the repository browser.