set(kteatime_SRCS settings.cpp timeedit.cpp toplevel.cpp tealistmodel.cpp tea.cpp main.cpp )

kde4_add_ui_files(kteatime_SRCS settings.ui timeedit.ui)
kde4_add_app_icon(kteatime_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/../data/icons/hi*-app-kteatime.png")
kde4_add_executable(kteatime ${kteatime_SRCS})
target_link_libraries(kteatime ${KDE4_KNOTIFYCONFIG_LIBS} ${KDE4_KDEUI_LIBS})

install( TARGETS kteatime ${INSTALL_TARGETS_DEFAULT_ARGS} )
install( FILES kteatime.desktop  DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( FILES kteatime.notifyrc  DESTINATION ${DATA_INSTALL_DIR}/kteatime )
