if (USE_VDPAU)
	ADD_SUBDIRECTORY(ADM_coreVdpau)
endif (USE_VDPAU)
if (USE_XVBA)
	ADD_SUBDIRECTORY(ADM_coreXvba)
endif (USE_XVBA)
if (USE_LIBVA)
	ADD_SUBDIRECTORY(ADM_coreLibVA)
endif (USE_LIBVA)

FILE(WRITE  ${CMAKE_BINARY_DIR}/config/ADM_coreConfig.cmake "")
IF(USE_VDPAU)
        FILE(APPEND  ${CMAKE_BINARY_DIR}/config/ADM_coreConfig.cmake "SET(USE_VDPAU 1)\n")
ENDIF(USE_VDPAU)
IF(USE_XVBA)
        FILE(APPEND  ${CMAKE_BINARY_DIR}/config/ADM_coreConfig.cmake "SET(USE_XVBA 1)\n")
ENDIF(USE_XVBA)
IF(USE_LIBVA)
        FILE(APPEND  ${CMAKE_BINARY_DIR}/config/ADM_coreConfig.cmake "SET(USE_LIBVA 1)\n")
ENDIF(USE_LIBVA)
IF(USE_NVENC)
        FILE(APPEND  ${CMAKE_BINARY_DIR}/config/ADM_coreConfig.cmake "SET(USE_NVENC 1)\n")
ENDIF(USE_NVENC)
