SET(libkbfxplasmasrc
	effect.cpp
	kbfxconfig.cpp
	kbfxdatagroup.cpp
	kbfxdatagrouplist.cpp
	kbfxdatasource.cpp
	kbfxdatastack.cpp
	kbfxkiodownload.cpp
	kbfxplasmacanvasgroup.cpp
	kbfxplasmacanvasgroupview.cpp
	kbfxplasmacanvasitem.cpp
	kbfxplasmacanvasitem_events.cpp
	kbfxplasmacanvasitemwrapper.cpp
	kbfxplasmacanvasstack.cpp
	kbfxplasmacanvasview.cpp
	kbfxplasmadataplugin.cpp
	kbfxplasmapluginloader.cpp
	kbfxplasmaskinmanager.cpp
	kbfxplugin.cpp
	kbfxplasmaindexitem.cpp 
	kbfxplasmaindexview.cpp
	kbfxplasmacanvasabstractitem.cpp
	kbfxspinxscrollbar.cpp 
	kbfxplasmawaterback.cpp
	kbfxplasmafadeitem.cpp
	)

FILE(GLOB HEADERS *.h)

KDE3_AUTOMOC(${libkbfxplasmasrc})

ADD_LIBRARY(kbfxplasma SHARED ${libkbfxplasmasrc} )
SET_TARGET_PROPERTIES(kbfxplasma
    	PROPERTIES
    	COMPILE_FLAGS ${CMAKE_SHARED_LIBRARY_CXX_FLAGS})
# SET_TARGET_PROPERTIES(kbfxplasma PROPERTIES
#     SOVERSION ${LIB_MAJOR}
#     VERSION ${APPLICATION_VERSION})
TARGET_LINK_LIBRARIES(kbfxplasma
    ${QT_AND_KDECORE_LIBS}
    ${KDE3_KIO_LIBRARY} 
    ${KDE3_UI_LIBRARY}
    ${KDE3_KHTML_LIBRARY}
    ${M_LIBRARY}
    )

KDE3_INSTALL_LIBTOOL_FILE(kbfxplasma ${LIB_INSTALL_DIR})
INSTALL(TARGETS kbfxplasma DESTINATION ${LIB_INSTALL_DIR})
INSTALL(FILES ${HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/kbfx)
