Changeset View
Changeset View
Standalone View
Standalone View
src/plasma/CMakeLists.txt
1 | add_subdirectory(packagestructure) | 1 | add_subdirectory(packagestructure) | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | # This option should be removed, or moved down as far as possible. | 3 | # This option should be removed, or moved down as far as possible. | ||
4 | # That means porting the existing frameworks to the CMake automoc | 4 | # That means porting the existing frameworks to the CMake automoc | ||
5 | # feature. Porting is mostly removing explicit moc includes, and | 5 | # feature. Porting is mostly removing explicit moc includes, and | ||
6 | # leaving the ones which are truly needed (ie, if you remove | 6 | # leaving the ones which are truly needed (ie, if you remove | ||
7 | # them, the build fails). | 7 | # them, the build fails). | ||
8 | set(CMAKE_AUTOMOC_RELAXED_MODE ON) | 8 | set(CMAKE_AUTOMOC_RELAXED_MODE ON) | ||
9 | 9 | | |||
10 | if(KDE_PLATFORM_FEATURE_BINARY_COMPATIBLE_FEATURE_REDUCTION) | 10 | if(KDE_PLATFORM_FEATURE_BINARY_COMPATIBLE_FEATURE_REDUCTION) | ||
11 | set(PLASMA_NO_PACKAGEKIT TRUE) | | |||
12 | set(PLASMA_NO_PACKAGE_EXTRADATA TRUE) | 11 | set(PLASMA_NO_PACKAGE_EXTRADATA TRUE) | ||
13 | endif() | 12 | endif() | ||
14 | 13 | | |||
15 | if(NOT HAVE_X11) | | |||
16 | set(PLASMA_NO_PACKAGEKIT TRUE) | | |||
17 | endif() | | |||
18 | | ||||
19 | #find_package(KdepimLibs 4.5.60) | 14 | #find_package(KdepimLibs 4.5.60) | ||
20 | #find_package(Gpgme) | 15 | #find_package(Gpgme) | ||
21 | #set_package_properties(KDEPIMLIBS PROPERTIES DESCRIPTION "KDE PIM libraries" | 16 | #set_package_properties(KDEPIMLIBS PROPERTIES DESCRIPTION "KDE PIM libraries" | ||
22 | # URL "http://www.kde.org" TYPE OPTIONAL | 17 | # URL "http://www.kde.org" TYPE OPTIONAL | ||
23 | # PURPOSE "Needed for building several Plasma DataEngines") | 18 | # PURPOSE "Needed for building several Plasma DataEngines") | ||
24 | 19 | | |||
25 | if(NOT PLASMA_NO_PACKAGEKIT) | | |||
26 | add_definitions(-DPLASMA_ENABLE_PACKAGEKIT_SUPPORT=1) | | |||
27 | set(PLASMA_EXTRA_LIBS ${PLASMA_EXTRA_LIBS} Qt5::DBus) | | |||
28 | endif() | | |||
29 | | ||||
30 | configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config-plasma.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-plasma.h) | 20 | configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config-plasma.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-plasma.h) | ||
31 | 21 | | |||
32 | #FIXME: gpgme++ is in kdepimlibs, must move somewhere else! | 22 | #FIXME: gpgme++ is in kdepimlibs, must move somewhere else! | ||
33 | include_directories(${KDEPIMLIBS_INCLUDE_DIRS} ${GPGME_INCLUDES}) | 23 | include_directories(${KDEPIMLIBS_INCLUDE_DIRS} ${GPGME_INCLUDES}) | ||
34 | 24 | | |||
35 | add_definitions(-DKDE_DEFAULT_DEBUG_AREA=1209) | 25 | add_definitions(-DKDE_DEFAULT_DEBUG_AREA=1209) | ||
36 | 26 | | |||
37 | ########### next target ############### | 27 | ########### next target ############### | ||
38 | 28 | | |||
39 | set(Plasma_LIB_SRCS | 29 | set(Plasma_LIB_SRCS | ||
40 | #global | 30 | #global | ||
41 | plasma.cpp | 31 | plasma.cpp | ||
42 | pluginloader.cpp | 32 | pluginloader.cpp | ||
43 | version.cpp | 33 | version.cpp | ||
44 | private/componentinstaller.cpp | | |||
45 | 34 | | |||
46 | #applets,containments,corona | 35 | #applets,containments,corona | ||
47 | applet.cpp | 36 | applet.cpp | ||
48 | containment.cpp | 37 | containment.cpp | ||
49 | containmentactions.cpp | 38 | containmentactions.cpp | ||
50 | corona.cpp | 39 | corona.cpp | ||
51 | private/applet_p.cpp | 40 | private/applet_p.cpp | ||
52 | private/associatedapplicationmanager.cpp | 41 | private/associatedapplicationmanager.cpp | ||
▲ Show 20 Lines • Show All 187 Lines • Show Last 20 Lines |