add_definitions(${MEDIASCANNER_DEPS_CFLAGS})
include_directories(..)

install(
  PROGRAMS watchertest.sh
  DESTINATION ${CMAKE_INSTALL_BINDIR}
  RENAME mediascanner-watcher
)

add_executable(mediascanner-query query.cc)
target_link_libraries(mediascanner-query mediascanner
${MEDIASCANNER_DEPS_LDFLAGS})
install(
  TARGETS mediascanner-query
  RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

add_executable(mediascanner-mountwatcher mountwatcher.cc)
target_link_libraries(mediascanner-mountwatcher scannerstuff)
install(
  TARGETS mediascanner-mountwatcher
  RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
