1######################################## 2# VDPAU 3# We only need header for VDPAU 4# as it is including its own dynlinker 5######################################## 6MACRO(checkVDPAU) 7 if (UNIX) 8 IF (NOT VDPAU_CHECKED) 9 OPTION(VDPAU "" ON) 10 11 MESSAGE(STATUS "Checking for VDPAU") 12 MESSAGE(STATUS "*******************") 13 14 IF (VDPAU) 15 16 FIND_HEADER_AND_LIB(VDPAU vdpau/vdpau.h ) 17 18 IF (VDPAU_FOUND) 19 # CHECK That it has 20 ADM_COMPILE(check_vdpau.cpp "" "${VDPAU_INCLUDE_DIR}" "${VDPAU_LIBRARY_DIR}" VDPAU_COMPILE VDPAU_OUTPUT) 21 IF(VDPAU_COMPILE) 22 SET(VDPAU_FOUND 1) 23 SET(USE_VDPAU 1) 24 SET(VDPAU_INCLUDE_DIR "${VDPAU_INCLUDE_DIR}") 25 SET(VDPAU_LIBRARY_DIR "${VDPAU_LIBRARY_DIR}") 26 ELSE(VDPAU_COMPILE) 27 MESSAGE(STATUS "The vdpau found does not compile, probably too old ${VDPAU_OUTPUT}.") 28 ENDIF(VDPAU_COMPILE) 29 30 ENDIF (VDPAU_FOUND) 31 32 PRINT_LIBRARY_INFO("VDPAU" VDPAU_FOUND "${VDPAU_INCLUDE_DIR}" "${VDPAU_LIBRARY_DIR}") 33 ELSE (VDPAU) 34 MESSAGE("${MSG_DISABLE_OPTION}") 35 ENDIF (VDPAU) 36 37 SET(VDPAU_CHECKED 1) 38 MESSAGE("") 39 ENDIF (NOT VDPAU_CHECKED) 40 41 APPEND_SUMMARY_LIST("Miscellaneous" "VDPAU" "${VDPAU_FOUND}") 42 endif (UNIX) 43ENDMACRO(checkVDPAU) 44