project(klines)
include_directories( ${CMAKE_SOURCE_DIR}/libkdegames ${CMAKE_SOURCE_DIR}/libkdegames/highscore  )


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

set(klines_SRCS 
   mwidget.cpp 
   klines.cpp 
   main.cpp
   scene.cpp
   renderer.cpp
   ballitem.cpp
   animator.cpp
   preview.cpp)

kde4_automoc(${klines_SRCS})

kde4_add_kcfg_files(klines_SRCS prefs.kcfgc )

kde4_add_executable(klines ${klines_SRCS})

target_link_libraries(klines  ${KDE4_KDEUI_LIBS} kdegames )

install(TARGETS klines  DESTINATION ${BIN_INSTALL_DIR} )


########### install files ###############

install( FILES klines.desktop  DESTINATION  ${XDG_APPS_DIR} )
install( FILES klines.kcfg  DESTINATION  ${KCFG_INSTALL_DIR} )
install( FILES balls.jpg field.jpg fire.jpg  DESTINATION  ${DATA_INSTALL_DIR}/klines/ )
install( FILES klinesui.rc  DESTINATION  ${DATA_INSTALL_DIR}/klines )

kde4_install_icons( ${ICON_INSTALL_DIR}   )



