FIND_PATH(G729_INCLUDE_DIR bcg729/decoder.h) FIND_LIBRARY(G729_LIBRARIES NAMES bcg729) IF(G729_INCLUDE_DIR AND G729_LIBRARIES) SET(G729_FOUND TRUE) ENDIF(G729_INCLUDE_DIR AND G729_LIBRARIES) IF(G729_FOUND) IF (NOT G729_FIND_QUIETLY) MESSAGE(STATUS "Found bcg729 includes: ${G729_INCLUDE_DIR}/bcg729/decoder.h") MESSAGE(STATUS "Found bcg729 library: ${G729_LIBRARIES}") ENDIF (NOT G729_FIND_QUIETLY) ELSE(G729_FOUND) IF (G729_FIND_REQUIRED) MESSAGE(FATAL_ERROR "Could NOT find bcg729 development files") ENDIF (G729_FIND_REQUIRED) ENDIF(G729_FOUND)