kde-workspace/ksmserver/CMakeLists.txt

79 lines
2.3 KiB
Text
Raw Normal View History

2014-11-13 19:30:51 +02:00
include_directories(
${CMAKE_SOURCE_DIR}/libs
2014-11-13 19:30:51 +02:00
${KDECLARATIVE_INCLUDE_DIR}
# for kworkspace_export.h
${CMAKE_BINARY_DIR}/libs/kworkspace
2014-11-13 19:30:51 +02:00
)
add_subdirectory( kcm )
2015-09-01 04:37:19 +03:00
if(ENABLE_TESTING)
add_subdirectory(tests)
endif()
2014-11-13 19:30:51 +02:00
check_library_exists(ICE _IceTransNoListen "" HAVE__ICETRANSNOLISTEN)
configure_file(config-ksmserver.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-ksmserver.h)
########### next target ###############
set(ksmserver_SRCS
2014-11-13 19:30:51 +02:00
main.cpp
server.cpp
shutdowndlg.cpp
legacy.cpp
startup.cpp
shutdown.cpp
client.cpp
logouteffect.cpp
curtaineffect.cpp
)
2014-11-13 19:30:51 +02:00
set(kcminit_adaptor ${CMAKE_SOURCE_DIR}/kcminit/main.h)
2014-11-13 19:30:51 +02:00
set(kcminit_xml ${CMAKE_CURRENT_BINARY_DIR}/org.kde.KCMinit.xml)
qt4_generate_dbus_interface(${kcminit_adaptor} ${kcminit_xml})
qt4_add_dbus_interface( ksmserver_SRCS ${kcminit_xml} kcminit_interface )
2014-11-13 19:30:51 +02:00
# This is actually now disabled, because OrgKDEKlauncherInterface is also provided
# by kdecore, it is not autogenerated and is not binary compatible with a currently
# generated version, thus at certain circumstances leading to strange crashes.
# This should be fixed for KDE5.
# KLauchner.xml is installed by kdelibs, so it is in KDE4_DBUS_INTERFACES_INSTALL_DIR
# set(klauncher_xml ${KDE4_DBUS_INTERFACES_INSTALL_DIR}/org.kde.KLauncher.xml)
# qt4_add_dbus_interface( ksmserver_SRCS ${klauncher_xml} klauncher_interface )
2014-11-13 19:30:51 +02:00
qt4_add_dbus_adaptor( ksmserver_SRCS org.kde.KSMServerInterface.xml server.h KSMServer )
2014-11-13 19:30:51 +02:00
2015-09-01 04:37:19 +03:00
add_executable( ksmserver ${ksmserver_SRCS})
2014-11-13 19:30:51 +02:00
2015-10-29 11:04:29 +02:00
target_link_libraries(ksmserver
${KDE4_PLASMA_LIBS}
${KDE4_KDEUI_LIBS}
${KDE4_KIO_LIBS}
${KDE4_SOLID_LIBS}
${KDE4_KDECLARATIVE_LIBS}
${QT_QTDECLARATIVE_LIBRARY}
2015-10-29 11:04:29 +02:00
${X11_LIBRARIES}
${X11_Xrender_LIB}
kworkspace
2014-11-13 19:30:51 +02:00
)
install(TARGETS ksmserver ${INSTALL_TARGETS_DEFAULT_ARGS})
########### next target ###############
set(kcheckrunning_SRCS
kcheckrunning.cpp)
2015-09-01 04:37:19 +03:00
add_executable( kcheckrunning ${kcheckrunning_SRCS})
2014-11-13 19:30:51 +02:00
target_link_libraries(kcheckrunning ${X11_LIBRARIES})
install(TARGETS kcheckrunning ${INSTALL_TARGETS_DEFAULT_ARGS})
########### install files ###############
install( FILES org.kde.KSMServerInterface.xml DESTINATION ${KDE4_DBUS_INTERFACES_INSTALL_DIR})
install( DIRECTORY themes/ DESTINATION ${KDE4_DATA_INSTALL_DIR}/ksmserver/themes )