File: FindGsm.cmake

package info (click to toggle)
twinkle 1%3A1.10.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 7,144 kB
  • sloc: cpp: 62,217; makefile: 17
file content (17 lines) | stat: -rw-r--r-- 514 bytes parent folder | download | duplicates (7)
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)