
include_directories ( ${KOPETE_INCLUDES} )

#add_subdirectory( sqlite ) 

########### next target ###############

set(kopete_statistics_PART_SRCS 
   statisticsplugin.cpp 
   statisticsdb.cpp 
   statisticsdialog.cpp 
   statisticscontact.cpp )

kde4_add_ui_files(kopete_statistics_PART_SRCS statisticswidgetbase.ui )

qt4_add_dbus_interfaces(kopete_statistics_PART_SRCS org.kde.kopete.statisticsiface.xml)

kde4_add_plugin(kopete_statistics ${kopete_statistics_PART_SRCS})


target_link_libraries(kopete_statistics  ${KDE4_KDECORE_LIBS} kopete sqlite3 ${KDE4_KHTML_LIBS} )

install(TARGETS kopete_statistics  DESTINATION ${PLUGIN_INSTALL_DIR})


########### install files ###############
install( FILES org.kde.kopete.statisticsiface.xml DESTINATION ${DBUS_INTERFACES_INSTALL_DIR} )
install( FILES kopete_statistics.desktop  DESTINATION ${SERVICES_INSTALL_DIR})
install( FILES statisticsui.rc  DESTINATION ${DATA_INSTALL_DIR}/kopete_statistics)
install( FILES images/blue.png images/navy.png images/black.png images/gray.png  DESTINATION ${DATA_INSTALL_DIR}/kopete/pics/statistics)


include_directories ( ${KOPETE_INCLUDES} )

#add_subdirectory( sqlite ) 

########### next target ###############

set(kopete_statistics_PART_SRCS 
   statisticsplugin.cpp 
   statisticsdb.cpp 
   statisticsdialog.cpp 
   statisticscontact.cpp )

kde4_add_ui_files(kopete_statistics_PART_SRCS statisticswidgetbase.ui )

qt4_add_dbus_interfaces(kopete_statistics_PART_SRCS org.kde.kopete.statisticsiface.xml)

kde4_add_plugin(kopete_statistics ${kopete_statistics_PART_SRCS})


target_link_libraries(kopete_statistics  kopete sqlite3 ${KDE4_KHTML_LIBS} )

install(TARGETS kopete_statistics  DESTINATION ${PLUGIN_INSTALL_DIR})


########### install files ###############
install( FILES org.kde.kopete.statisticsiface.xml DESTINATION ${DBUS_INTERFACES_INSTALL_DIR} )
install( FILES kopete_statistics.desktop  DESTINATION ${SERVICES_INSTALL_DIR})
install( FILES statisticsui.rc  DESTINATION ${DATA_INSTALL_DIR}/kopete_statistics)
install( FILES images/blue.png images/navy.png images/black.png images/gray.png  DESTINATION ${DATA_INSTALL_DIR}/kopete/pics/statistics)

Remove not necessary cmake variable
Remove not necessary cmake variable

svn path=/trunk/KDE/kdenetwork/kopete/; revision=720022
