include_directories(
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_SOURCE_DIR}/kmyfirewall/core
  ${CMAKE_SOURCE_DIR}/kmyfirewall/kmfwidgets
  ${CMAKE_BINARY_DIR}
  ${TQT_INCLUDE_DIRS}
  ${TDE_INCLUDE_DIR}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
  ${TDE_LIB_DIR}
)


##### kmfsystray (executable)

tde_message_fatal(
  "KMFSysTray is not ready for building and probably would not be functional."
  "It needs KMFIPTInterface which is not ready."
)

tde_add_executable( kmfsystray AUTOMOC
  SOURCES
    kmfsystray.cpp app.cpp mainwidget.cpp mainwidget_designer.ui
    details.cpp details_designer.ui kmfiptwatcher.cpp main.cpp
  LINK
    DCOP-shared tdecore-shared tdeui-shared tdeio-shared
    tdeparts-shared tdefx-shared tdetexteditor-shared
    kmfcore-shared kmfwidgets-shared
  DESTINATION ${BIN_INSTALL_DIR}
)


##### other data

tde_create_translated_desktop(
  SOURCE kmfsystray.desktop
  DESTINATION ${DATA_INSTALL_DIR}/kicker/applets
)
