summaryrefslogtreecommitdiffstats
path: root/cmake/FindCcrtp.cmake
blob: 93a9e315921c13193315d8223fe57e0f731aaecc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FIND_PATH(CCRTP_INCLUDE_DIR ccrtp/rtp.h)
FIND_LIBRARY(CCRTP_LIBRARIES NAMES ccrtp)

IF(CCRTP_INCLUDE_DIR AND CCRTP_LIBRARIES)
	SET(CCRTP_FOUND TRUE)
ENDIF(CCRTP_INCLUDE_DIR AND CCRTP_LIBRARIES)

IF(CCRTP_FOUND)
	IF (NOT Ccrtp_FIND_QUIETLY)
		MESSAGE(STATUS "Found ccrtp includes:	${CCRTP_INCLUDE_DIR}/ccrtp/rtp.h")
		MESSAGE(STATUS "Found ccrtp library:	${CCRTP_LIBRARIES}")
	ENDIF (NOT Ccrtp_FIND_QUIETLY)
ELSE(CCRTP_FOUND)
	IF (Ccrtp_FIND_REQUIRED)
		MESSAGE(FATAL_ERROR "Could NOT find ccrtp development files")
	ENDIF (Ccrtp_FIND_REQUIRED)
ENDIF(CCRTP_FOUND)