summaryrefslogtreecommitdiffstats
path: root/cmake/FindZrtpcpp.cmake
blob: 3c7c3a00cfd25eb7c1f8a3a07cad64bfadb41dd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FIND_PATH(ZRTPCPP_INCLUDE_DIR libzrtpcpp/zrtpccrtp.h)
FIND_LIBRARY(ZRTPCPP_LIBRARIES NAMES zrtpcpp)

IF(ZRTPCPP_INCLUDE_DIR AND ZRTPCPP_LIBRARIES)
	SET(ZRTPCPP_FOUND TRUE)
ENDIF(ZRTPCPP_INCLUDE_DIR AND ZRTPCPP_LIBRARIES)

IF(ZRTPCPP_FOUND)
	IF (NOT Zrtpcpp_FIND_QUIETLY)
		MESSAGE(STATUS "Found libzrtpcpp includes:	${ZRTPCPP_INCLUDE_DIR}/libzrtpcpp/zrtpccrtp.h")
		MESSAGE(STATUS "Found libzrtpcpp library:	${ZRTPCPP_LIBRARIES}")

		SET(ZRTPCPP_INCLUDE_DIR ${ZRTPCPP_INCLUDE_DIR} "${ZRTPCPP_INCLUDE_DIR}/libzrtpcpp")
	ENDIF (NOT Zrtpcpp_FIND_QUIETLY)
ELSE(ZRTPCPP_FOUND)
	IF (Zrtpcpp_FIND_REQUIRED)
		MESSAGE(FATAL_ERROR "Could NOT find libzrtpcpp development files")
	ENDIF (Zrtpcpp_FIND_REQUIRED)
ENDIF(ZRTPCPP_FOUND)