# DCA decoder
INCLUDE(admCheckDca)
checkDca()

IF(LIBDCA_FOUND)
  INCLUDE(ad_plugin)

  SET(ADM_ad_dca_SRCS ADM_dca.cpp)

  ADD_AUDIO_DECODER(ADM_ad_dca ${ADM_ad_dca_SRCS})
  TARGET_LINK_LIBRARIES(ADM_ad_dca PRIVATE ${LIBDCA_LIBRARY_DIR})

  ADD_TARGET_CFLAGS(ADM_ad_dca "-I${LIBDCA_INCLUDE_DIR}")
  ADD_TARGET_CFLAGS(ADM_ad_dca "-DUSE_LIBDCA_${LIBDCA_VERSION}")

  INIT_AUDIO_PLUGIN(ADM_ad_dca)
  INSTALL_AUDIODECODER(ADM_ad_dca)
ENDIF()
