project(ksnake)

add_subdirectory( data ) 

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


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

set(ksnake_SRCS 
	game.cpp 
	rattler.cpp 
	board.cpp 
	level.cpp 
	ball.cpp 
	snake.cpp 
	basket.cpp 
	startroom.cpp 
	pixServer.cpp 
	progress.cpp 
	levels.cpp 
	view.cpp 
	main.cpp)


kde4_automoc(${ksnake_SRCS})

kde4_add_kcfg_files(ksnake_SRCS settings.kcfgc )

kde4_add_ui_files( ksnake_SRCS appearance.ui general.ui )

kde4_add_executable(ksnake ${ksnake_SRCS})

target_link_libraries(ksnake  ${KDE4_KDEUI_LIBS} kdegames)

install(TARGETS ksnake  DESTINATION ${BIN_INSTALL_DIR} )


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

install( FILES ksnake.desktop  DESTINATION  ${XDG_APPS_DIR} )
install( FILES ksnake.kcfg  DESTINATION  ${KCFG_INSTALL_DIR} )
install( FILES ksnakeui.rc  DESTINATION  ${DATA_INSTALL_DIR}/ksnake )

kde4_install_icons( ${ICON_INSTALL_DIR}   )


