SET(libkbfxspinxsrc
	effect.cpp
	kbfxbutton.cpp
	kbfxfancypopupitem.cpp
	kbfxplasmacanvasabstractitem.cpp
	kbfxplasmacanvasgroup.cpp
	kbfxplasmacanvasgroupview.cpp
	kbfxplasmacanvasitem.cpp
	kbfxplasmacanvasitem_events.cpp
	kbfxplasmacanvasitemwrapper.cpp
	kbfxplasmacanvasstack.cpp
	kbfxplasmacanvasview.cpp
	kbfxplasmafadeitem.cpp
	kbfxplasmaindexitem.cpp
	kbfxplasmaindexview.cpp
	kbfxplasmapixmapprovider.cpp
	kbfxplasmaskinmanager.cpp
	kbfxplasmawaterback.cpp
	kbfxspinx.cpp
	kbfxspinxmenu.cpp
	kbfxspinxpopup.cpp
	kbfxspinxscrollbar.cpp
	kbfxspinxtoolbar.cpp
	kbfxspinxtoolbutton.cpp
	kbfxspinxtop.cpp
	kbfxspinxview.cpp
	kbfxtooltip.cpp
	)

# TODO: Have to rewrite it for DBUS. 
# Rewrite the DCOP interface (in src/) to DBUS for KDE4 support.
# Should be done in a way to preserve KDE3 compatibility!
#KDE4_ADD_DCOP_SKELS(libkbfxspinxsrc kbfxspinx.h)

KDE4_ADD_LIBRARY(kbfxspinx MODULE ${libkbfxspinxsrc})
TARGET_LINK_LIBRARIES(kbfxspinx
    ${KDE4_KDECORE_LIBS}
    ${KDE4_KDEUI_LIBS}
    ${KDE4_KDE4SUPPORT_LIBS}
    )

KDE4_INSTALL_LIBTOOL_FILE(kbfxspinx ${LIB_INSTALL_DIR})

INSTALL(TARGETS kbfxspinx DESTINATION ${LIB_INSTALL_DIR})
INSTALL(FILES kbfxspinx.desktop DESTINATION ${DATA_INSTALL_DIR}/kicker/applets)
