Changeset View
Changeset View
Standalone View
Standalone View
ksmserver/CMakeLists.txt
1 | add_definitions(-DTRANSLATION_DOMAIN=\"ksmserver\") | 1 | add_definitions(-DTRANSLATION_DOMAIN=\"ksmserver\") | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | include_directories(${PHONON_INCLUDE_DIR}) | 3 | include_directories(${PHONON_INCLUDE_DIR}) | ||
4 | 4 | | |||
5 | check_library_exists(ICE _IceTransNoListen "" HAVE__ICETRANSNOLISTEN) | 5 | check_library_exists(ICE _IceTransNoListen "" HAVE__ICETRANSNOLISTEN) | ||
6 | configure_file(config-ksmserver.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-ksmserver.h) | 6 | configure_file(config-ksmserver.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-ksmserver.h) | ||
7 | 7 | | |||
8 | include_directories(${CMAKE_CURRENT_BINARY_DIR}) | 8 | include_directories(${CMAKE_CURRENT_BINARY_DIR}) | ||
9 | add_subdirectory(logout-greeter) | 9 | add_subdirectory(logout-greeter) | ||
10 | add_subdirectory(switchuser-greeter) | 10 | add_subdirectory(switchuser-greeter) | ||
11 | add_subdirectory(tests) | 11 | add_subdirectory(tests) | ||
12 | add_subdirectory(policykit-agent) | ||||
12 | 13 | | |||
13 | ########### next target ############### | 14 | ########### next target ############### | ||
14 | 15 | | |||
15 | set(ksmserver_KDEINIT_SRCS | 16 | set(ksmserver_KDEINIT_SRCS | ||
16 | ksmserver_debug.cpp | 17 | ksmserver_debug.cpp | ||
17 | main.cpp | 18 | main.cpp | ||
18 | server.cpp | 19 | server.cpp | ||
19 | legacy.cpp | 20 | legacy.cpp | ||
Show All 16 Lines | |||||
36 | # # generated version, thus at certain circumstances leading to strange crashes. | 37 | # # generated version, thus at certain circumstances leading to strange crashes. | ||
37 | # # This should be fixed for KDE5. | 38 | # # This should be fixed for KDE5. | ||
38 | # # KLauchner.xml is installed by kdelibs, so it is in KDE4_DBUS_INTERFACES_DIR | 39 | # # KLauchner.xml is installed by kdelibs, so it is in KDE4_DBUS_INTERFACES_DIR | ||
39 | set(klauncher_xml ${KINIT_DBUS_INTERFACES_DIR}/kf5_org.kde.KLauncher.xml) | 40 | set(klauncher_xml ${KINIT_DBUS_INTERFACES_DIR}/kf5_org.kde.KLauncher.xml) | ||
40 | qt5_add_dbus_interface( ksmserver_KDEINIT_SRCS ${klauncher_xml} klauncher_interface ) | 41 | qt5_add_dbus_interface( ksmserver_KDEINIT_SRCS ${klauncher_xml} klauncher_interface ) | ||
41 | 42 | | |||
42 | qt5_add_dbus_adaptor( ksmserver_KDEINIT_SRCS org.kde.KSMServerInterface.xml server.h KSMServer ) | 43 | qt5_add_dbus_adaptor( ksmserver_KDEINIT_SRCS org.kde.KSMServerInterface.xml server.h KSMServer ) | ||
43 | 44 | | |||
45 | configure_file (config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h) | ||||
46 | | ||||
44 | kf5_add_kdeinit_executable( ksmserver ${ksmserver_KDEINIT_SRCS}) | 47 | kf5_add_kdeinit_executable( ksmserver ${ksmserver_KDEINIT_SRCS}) | ||
45 | 48 | | |||
46 | set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KSMServerDBusInterface") | 49 | set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KSMServerDBusInterface") | ||
47 | 50 | | |||
48 | ecm_configure_package_config_file(KSMServerDBusInterfaceConfig.cmake.in | 51 | ecm_configure_package_config_file(KSMServerDBusInterfaceConfig.cmake.in | ||
49 | ${CMAKE_CURRENT_BINARY_DIR}/KSMServerDBusInterfaceConfig.cmake | 52 | ${CMAKE_CURRENT_BINARY_DIR}/KSMServerDBusInterfaceConfig.cmake | ||
50 | PATH_VARS KDE_INSTALL_DBUSINTERFACEDIR | 53 | PATH_VARS KDE_INSTALL_DBUSINTERFACEDIR | ||
51 | INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR}) | 54 | INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR}) | ||
Show All 11 Lines | 56 | target_link_libraries(kdeinit_ksmserver | |||
63 | KF5::Solid | 66 | KF5::Solid | ||
64 | Qt5::Quick | 67 | Qt5::Quick | ||
65 | KF5::Declarative | 68 | KF5::Declarative | ||
66 | KF5::DBusAddons | 69 | KF5::DBusAddons | ||
67 | KF5::Package | 70 | KF5::Package | ||
68 | KF5::KDELibs4Support # Solid/PowerManagement | 71 | KF5::KDELibs4Support # Solid/PowerManagement | ||
69 | ${PHONON_LIBRARIES} | 72 | ${PHONON_LIBRARIES} | ||
70 | Qt5::Concurrent | 73 | Qt5::Concurrent | ||
74 | polkit-kde-authentication-agent-1 | ||||
71 | ) | 75 | ) | ||
72 | 76 | | |||
73 | install(TARGETS kdeinit_ksmserver ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) | 77 | install(TARGETS kdeinit_ksmserver ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) | ||
74 | 78 | | |||
75 | install(TARGETS ksmserver ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) | 79 | install(TARGETS ksmserver ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) | ||
76 | 80 | | |||
77 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/KSMServerDBusInterfaceConfig.cmake | 81 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/KSMServerDBusInterfaceConfig.cmake | ||
78 | DESTINATION ${CMAKECONFIG_INSTALL_DIR}) | 82 | DESTINATION ${CMAKECONFIG_INSTALL_DIR}) | ||
Show All 16 Lines |