include_directories( ../daemon ../streamindexer ../htmlgui ../filters)

if (QT4_FOUND)
  include(${QT_USE_FILE})

  # strigiclient
  set(strigiclient_SRCS strigiclient.cpp simplesearchgui.cpp
        qt4strigiclient.cpp searchtabs.cpp searchview.cpp dlgpreferences.cpp preferrorpage.cpp preffilterpage.cpp dlgaddfilteringrule.cpp dlglistindexedfiles.cpp)
  set(strigiclient_MOC_HDRS qt4strigiclient.h searchtabs.h
    searchview.h simplesearchgui.h dlgpreferences.h preferrorpage.h preffilterpage.h dlgaddfilteringrule.h dlglistindexedfiles.h)

  qt4_wrap_cpp(strigiclient_MOC_SRCS ${strigiclient_MOC_HDRS})

  add_executable(strigiclient ${strigiclient_SRCS} ${strigiclient_MOC_SRCS})

  target_link_libraries(strigiclient searchclient filters strigihtmlgui ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})

  install(TARGETS strigiclient RUNTIME DESTINATION bin)
endif (QT4_FOUND)




