project(kpoker)

add_subdirectory( sounds ) 

include_directories( ${CMAKE_SOURCE_DIR}/libkdegames  )


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

set(kpoker_SRCS 
   kpoker.cpp 
   kpaint.cpp 
   top.cpp 
   main.cpp 
   betbox.cpp 
   optionsdlg.cpp 
   player.cpp 
   playerbox.cpp 
   newgamedlg.cpp 
   poker.cpp )

kde4_automoc(${kpoker_SRCS})

kde4_add_executable(kpoker ${kpoker_SRCS})

target_link_libraries(kpoker  ${KDE4_KDEUI_LIBS} kdegames ${KDE4_PHONONCORE_LIBS})

install(TARGETS kpoker  DESTINATION ${BIN_INSTALL_DIR} )


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

install( FILES kpoker.desktop  DESTINATION  ${XDG_APPS_DIR} )
install( FILES kpokerui.rc  DESTINATION  ${DATA_INSTALL_DIR}/kpoker )

kde4_install_icons( ${ICON_INSTALL_DIR}   )

