add_subdirectory( data  )
add_subdirectory( icons )

include_directories(
  ${CMAKE_BINARY_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${TDE_INCLUDE_DIR}
  ${TQT_INCLUDE_DIRS}
  ${CMAKE_SOURCE_DIR}/libtdeedu/tdeeducore
)

link_directories(
  ${TQT_LIBRARY_DIRS}
  ${TDE_LIB_DIR}
)


##### klatin (executable)

tde_add_executable( klatin AUTOMOC

  SOURCES
        klatinchoose.ui
        klatingrammarwidget.ui
        klatinvocabwidget.ui
        klatinverbswidget.ui
        klatinresultsdialog.ui
        klatinsettings_vocabpage.ui
        main.cpp
        klatin.cpp
        klatingrammar.cpp
        klatinverbs.cpp
        klatinvocab.cpp
        settings.kcfgc
  LINK
     tdecore-shared
     tdeui-shared
     tdeio-shared
     tdeeducore-shared

  DESTINATION ${BIN_INSTALL_DIR}
)


##### other data

install(
    FILES klatinui.rc
    DESTINATION ${DATA_INSTALL_DIR}/klatin
)

tde_create_translated_desktop( klatin.desktop )

install(
    FILES klatin.kcfg
    DESTINATION ${KCFG_INSTALL_DIR}
)
