kde-workspace/libs/kworkspace/CMakeLists.txt
Ivailo Monev c547dd7a57 generic: fix most of the overlinking issues
see commit in kdelibs repository

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-10 00:23:28 +00:00

51 lines
1.2 KiB
CMake

set(kworkspace_LIB_SRCS
kdisplaymanager.cpp
kwindowlistmenu.cpp
screenpreviewwidget.cpp
kworkspace.cpp
)
set(ksmserver_xml ${CMAKE_SOURCE_DIR}/ksmserver/org.kde.KSMServerInterface.xml)
qt4_add_dbus_interface(kworkspace_LIB_SRCS ${ksmserver_xml} ksmserver_interface)
set(kwin_xml ${CMAKE_SOURCE_DIR}/kwin/org.kde.KWin.xml)
set_source_files_properties(${kwin_xml} PROPERTIES INCLUDE "interface_util.h")
qt4_add_dbus_interface(kworkspace_LIB_SRCS ${kwin_xml} kwin_interface)
add_library(kworkspace SHARED ${kworkspace_LIB_SRCS})
target_link_libraries(kworkspace PRIVATE
${X11_Xau_LIB}
${X11_SM_LIB}
${X11_ICE_LIB}
)
target_link_libraries(kworkspace PUBLIC
${KDE4_KDEUI_LIBS}
${KDE4_PLASMA_LIBS}
)
set_target_properties(kworkspace PROPERTIES
VERSION ${GENERIC_LIB_VERSION}
SOVERSION ${GENERIC_LIB_SOVERSION}
DEFINE_SYMBOL MAKE_KWORKSPACE_LIB
)
install(
TARGETS kworkspace
EXPORT kdeworkspaceLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS}
)
install(
FILES
kdisplaymanager.h
kwindowlistmenu.h
kworkspace.h
kworkspace_export.h
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/kworkspace
COMPONENT Devel
)