summaryrefslogtreecommitdiffstats
path: root/cmake/FindG729.cmake
blob: 4a30ba07e50219cd27859829b5b0312e7f0af3b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FIND_PATH(G729_INCLUDE_DIR bcg729/decoder.h)
FIND_LIBRARY(G729_LIBRARY NAMES bcg729)

IF(G729_INCLUDE_DIR AND G729_LIBRARY)
	SET(G729_FOUND TRUE)
ENDIF(G729_INCLUDE_DIR AND G729_LIBRARY)

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_LIBRARY}")
	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)