File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ # Find Qextserialport
2+ # ~~~~~~~~
3+ # Copyright (c) 2011, Jürgen E. Fischer <jef at norbit.de>
4+ #
5+ # Redistribution and use is allowed according to the terms of the BSD license.
6+ # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
7+ #
8+ # Once run this will define:
9+ #
10+ # QEXTSERIALPORT_FOUND = system has Qextserialport lib
11+ # QEXTSERIALPORT_LIBRARY = full path to the Qextserialport library
12+ # QEXTSERIALPORT_INCLUDE_DIR = where to find headers
13+ #
14+
15+
16+ FIND_PATH (QEXTSERIALPORT_INCLUDE_DIR NAMES qextserialport.h PATHS
17+ /usr/include
18+ /usr/local/include
19+ "$ENV{LIB_DIR} /include"
20+ "$ENV{INCLUDE} "
21+ PATH_SUFFIXES QtExtSerialPort
22+ )
23+
24+ FIND_LIBRARY (QEXTSERIALPORT_LIBRARY NAMES qextserialport-1.2 PATHS
25+ /usr/lib
26+ /usr/local/lib
27+ "$ENV{LIB_DIR} /lib"
28+ "$ENV{LIB} /lib"
29+ )
30+
31+ IF (QEXTSERIALPORT_INCLUDE_DIR AND QEXTSERIALPORT_LIBRARY)
32+ SET (QEXTSERIALPORT_FOUND TRUE )
33+ ENDIF (QEXTSERIALPORT_INCLUDE_DIR AND QEXTSERIALPORT_LIBRARY)
34+
35+ IF (QEXTSERIALPORT_FOUND)
36+ IF (NOT QEXTSERIALPORT_FIND_QUIETLY)
37+ MESSAGE (STATUS "Found Qextserialport: ${QEXTSERIALPORT_LIBRARY} " )
38+ ENDIF (NOT QEXTSERIALPORT_FIND_QUIETLY)
39+ ELSE (QEXTSERIALPORT_FOUND)
40+ IF (QEXTSERIALPORT_FIND_REQUIRED)
41+ MESSAGE (FATAL_ERROR "Could not find Qextserialport" )
42+ ENDIF (QEXTSERIALPORT_FIND_REQUIRED)
43+ ENDIF (QEXTSERIALPORT_FOUND)
You can’t perform that action at this time.
0 commit comments