include_directories(
    ${CMAKE_CURRENT_SOURCE_DIR}/..
    ${CMAKE_CURRENT_SOURCE_DIR}/../widgetsexplorer
)

add_definitions(-DPLASMAGENERICSHELL_EXPORT=)

set(appletexplorer_SRCS
    ../widgetsexplorer/kcategorizeditemsviewmodels.cpp
    ../widgetsexplorer/plasmaappletitemmodel.cpp
    ../widgetsexplorer/widgetexplorer.cpp
    main.cpp
)
add_executable(plasmaappletexplorer ${appletexplorer_SRCS})
target_link_libraries(plasmaappletexplorer
    ${KDE4_PLASMA_LIBS}
    ${KDE4_KDEUI_LIBS}
    ${KDE4_KFILE_LIBS}
    ${QT_QTDECLARATIVE_LIBRARY}
)

set(backgrounddialog_SRCS
    background.cpp
    ../backgrounddialog.cpp
    ../mouseinputbutton.cpp
    ../mouseplugins.cpp
    ../mousepluginwidget.cpp
    ../wallpaperpreview.cpp
    ../MousePlugins.ui
    ../MousePlugins.ui
    ../BackgroundDialog.ui
)

kde4_add_kcfg_files(backgrounddialog_SRCS ${CMAKE_SOURCE_DIR}/plasma/shells/plasma-desktop/data/plasma-shell-desktop.kcfgc)

add_executable(plasmabackgrounddialog ${backgrounddialog_SRCS})
target_link_libraries(plasmabackgrounddialog ${KDE4_PLASMA_LIBS} ${QT_QTUITOOLS_LIBRARY} ${KDE4_KFILE_LIBS} kworkspace)

