include_directories(
  ${CMAKE_BINARY_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${TDE_INCLUDE_DIR}
  ${TQT_INCLUDE_DIRS}
  ${CMAKE_SOURCE_DIR}/kaffeine/src/input/
  ${CMAKE_SOURCE_DIR}/kaffeine/src/
  ${CMAKE_SOURCE_DIR}/kaffeine/src/player-parts/kaffeine-part
)

link_directories(
  ${TQT_LIBRARY_DIRS}
  ${TDE_LIB_DIR}
)


##### kaffeineaudiobrowser (static)

tde_add_library( kaffeineaudiobrowser STATIC_PIC AUTOMOC

  SOURCES
        playlist.cpp
        playlistitem.cpp
        urllistview.cpp
        googlefetcher.cpp
        googlefetcherdialog.cpp
  LINK
     kaffeineinput-static
     kaffeinepart-shared
     tdehtml-shared
)


##### other data

install(
    FILES kaffeineplaylist.rc
    DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
)
