summaryrefslogtreecommitdiffstats
path: root/cmake/FindIlbc.cmake
blob: f66ca550ad8c2c72a03f3e5556ec91da2b7e5033 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FIND_PATH(ILBC_INCLUDE_DIR ilbc/iLBC_decode.h)
FIND_LIBRARY(ILBC_LIBRARIES NAMES ilbc)

IF(ILBC_INCLUDE_DIR AND ILBC_LIBRARIES)
	SET(ILBC_FOUND TRUE)
ENDIF(ILBC_INCLUDE_DIR AND ILBC_LIBRARIES)

IF(ILBC_FOUND)
	IF (NOT Ilbc_FIND_QUIETLY)
		MESSAGE(STATUS "Found ilbc includes:	${ILBC_INCLUDE_DIR}/ilbc/iLBC_decode.h")
		MESSAGE(STATUS "Found ilbc library: ${ILBC_LIBRARIES}")
	ENDIF (NOT Ilbc_FIND_QUIETLY)
ELSE(ILBC_FOUND)
	IF (Ilbc_FIND_REQUIRED)
		MESSAGE(FATAL_ERROR "Could NOT find ilbc development files")
	ENDIF (Ilbc_FIND_REQUIRED)
ENDIF(ILBC_FOUND)