summaryrefslogtreecommitdiffstats
path: root/cmake/FindGsm.cmake
blob: 85f367bc9cd178da74fcb77420c1e6d2090bad96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FIND_PATH(GSM_INCLUDE_DIR gsm/gsm.h)
FIND_LIBRARY(GSM_LIBRARY NAMES gsm)

IF(GSM_INCLUDE_DIR AND GSM_LIBRARY)
	SET(GSM_FOUND TRUE)
ENDIF(GSM_INCLUDE_DIR AND GSM_LIBRARY)

IF(GSM_FOUND)
	IF (NOT Gsm_FIND_QUIETLY)
		MESSAGE(STATUS "Found gsm includes:	${GSM_INCLUDE_DIR}/gsm/config.h")
		MESSAGE(STATUS "Found gsm library:	${GSM_LIBRARY}")
	ENDIF (NOT Gsm_FIND_QUIETLY)
ELSE(GSM_FOUND)
	IF (Gsm_FIND_REQUIRED)
		MESSAGE(FATAL_ERROR "Could NOT find gsm development files")
	ENDIF (Gsm_FIND_REQUIRED)
ENDIF(GSM_FOUND)