Browse code

Split off some library-specific search rules for CMake from main file

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>

Peter Lemenkov authored on 02/10/2010 07:55:11
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,17 @@
1
+FIND_PATH(MISDN_INCLUDE_DIR mISDNuser/mISDNlib.h)
2
+FIND_LIBRARY(MISDN_LIBRARIES NAMES mISDN)
3
+
4
+IF(MISDN_INCLUDE_DIR AND MISDN_LIBRARIES)
5
+	SET(MISDN_FOUND TRUE)
6
+ENDIF(MISDN_INCLUDE_DIR AND MISDN_LIBRARIES)
7
+
8
+IF(MISDN_FOUND)
9
+	IF (NOT MISDN_FIND_QUIETLY)
10
+		MESSAGE(STATUS "Found mISDN includes:	${MISDN_INCLUDE_DIR}/mISDNuser/mISDNlib.h")
11
+		MESSAGE(STATUS "Found mISDN library: ${MISDN_LIBRARIES}")
12
+	ENDIF (NOT MISDN_FIND_QUIETLY)
13
+ELSE(MISDN_FOUND)
14
+	IF (MISDN_FIND_REQUIRED)
15
+		MESSAGE(FATAL_ERROR "Could NOT find mISDN development files")
16
+	ENDIF (MISDN_FIND_REQUIRED)
17
+ENDIF(MISDN_FOUND)