project(system_monitor)

# We add our source code here
set(sys_mon_SRCS system_monitor.cpp)

kde4_add_ui_files(sys_mon_SRCS generalConfig.ui coloursConfig.ui)

add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
include_directories(${KDE4_INCLUDES})
 
# Now make sure all files get to the right place
kde4_add_plugin(plasma-applet_system_monitor ${sys_mon_SRCS})
target_link_libraries(plasma-applet_system_monitor 
                      ${PLASMA_LIBS} ${KDE4_KDEUI_LIBS})
 
install(TARGETS plasma-applet_system_monitor
        DESTINATION ${PLUGIN_INSTALL_DIR})
 
install(FILES plasma-applet-system_monitor.desktop
        DESTINATION ${SERVICES_INSTALL_DIR})
