You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
0 B
34 lines
0 B
14 years ago
|
# - Try to find QSERIALPORT
|
||
14 years ago
|
# Once done, this will define
|
||
|
#
|
||
14 years ago
|
# QSERIALPORT_FOUND - system has scicoslab
|
||
|
# QSERIALPORT_INCLUDE_DIRS - the scicoslab include directories
|
||
|
# QSERIALPORT_LIBRARIES - libraries to link to
|
||
14 years ago
|
|
||
|
include(LibFindMacros)
|
||
|
|
||
|
# Include dir
|
||
14 years ago
|
find_path(QSERIALPORT_INCLUDE_DIR
|
||
14 years ago
|
NAMES QSerialPort
|
||
|
PATHS
|
||
|
/usr/include/QtSerialPort
|
||
|
/usr/local/include/QtSerialPort
|
||
|
/usr/local/qserialport/include/QtSerialPort
|
||
|
)
|
||
|
|
||
|
# Finally the library itself
|
||
14 years ago
|
find_library(QSERIALPORT_LIBRARY
|
||
14 years ago
|
NAMES
|
||
|
QtSerialPort
|
||
|
PATHS
|
||
|
/usr/lib
|
||
|
/usr/local/lib
|
||
|
/usr/local/qserialport/lib
|
||
|
)
|
||
|
|
||
|
# Set the include dir variables and the libraries and let libfind_process do the rest.
|
||
|
# NOTE: Singular variables for this library, plural for libraries this this lib depends on.
|
||
14 years ago
|
set(QSERIALPORT_PROCESS_INCLUDES QSERIALPORT_INCLUDE_DIR)
|
||
|
set(QSERIALPORT_PROCESS_LIBS QSERIALPORT_LIBRARY QSERIALPORT_LIBRARIES)
|
||
|
libfind_process(QSERIALPORT)
|