kde-workspace/libs/plasmagenericshell/CMakeLists.txt

73 lines
1.8 KiB
Text
Raw Normal View History

include_directories(
# for kworkspace_export.h
${CMAKE_BINARY_DIR}/libs/kworkspace
)
2015-09-25 01:51:21 +00:00
if(ENABLE_TESTING)
add_subdirectory(tests)
endif()
2014-11-13 19:30:51 +02:00
set(appletbrowserdialog_SRCS
widgetsexplorer/kcategorizeditemsviewmodels.cpp
widgetsexplorer/plasmaappletitemmodel.cpp
widgetsexplorer/widgetexplorer.cpp
widgetsexplorer/openwidgetassistant.cpp
)
set(scripting_SRC
scripting/appinterface.cpp
scripting/applet.cpp
scripting/containment.cpp
scripting/configgroup.cpp
scripting/i18n.cpp
scripting/layouttemplatepackagestructure.cpp
scripting/rect.cpp
scripting/scriptengine.cpp
scripting/widget.cpp
)
set(plasmagenericshell_LIB_SRCS
backgrounddialog.cpp
mouseinputbutton.cpp
mouseplugins.cpp
mousepluginwidget.cpp
panelshadows.cpp
toolbutton.cpp
wallpaperpreview.cpp
${scripting_SRC}
${appletbrowserdialog_SRCS}
2015-09-01 04:37:19 +03:00
BackgroundDialog.ui
MousePlugins.ui
2014-11-13 19:30:51 +02:00
)
2015-09-01 04:37:19 +03:00
add_library(plasmagenericshell SHARED ${plasmagenericshell_LIB_SRCS})
2014-11-13 19:30:51 +02:00
target_link_libraries(plasmagenericshell PUBLIC
${KDE4_PLASMA_LIBS}
${KDE4_KDEUI_LIBS}
${KDE4_KFILE_LIBS}
${QT_QTSCRIPT_LIBRARY}
${QT_QTDECLARATIVE_LIBRARY}
${QT_QTUITOOLS_LIBRARY}
kworkspace
kephal
)
if(Q_WS_X11)
target_link_libraries(plasmagenericshell PRIVATE ${X11_LIBRARIES})
endif(Q_WS_X11)
2014-11-13 19:30:51 +02:00
set_target_properties(plasmagenericshell PROPERTIES
VERSION ${GENERIC_LIB_VERSION}
SOVERSION ${GENERIC_LIB_SOVERSION}
)
2014-11-13 19:30:51 +02:00
install(DIRECTORY widgetsexplorer/package/
DESTINATION ${KDE4_DATA_INSTALL_DIR}/plasma/packages/org.kde.desktop.widgetexplorer
2014-11-13 19:30:51 +02:00
PATTERN "Messages.sh" EXCLUDE
)
install(TARGETS plasmagenericshell EXPORT kdeworkspaceLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS} )
INSTALL(FILES plasma-layout-template.desktop DESTINATION ${KDE4_SERVICETYPES_INSTALL_DIR})
2014-11-13 19:30:51 +02:00