地面站终端 App
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

14 years ago
# - Try to find QSERIALPORT
# 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
include(LibFindMacros)
# Include dir
14 years ago
find_path(QSERIALPORT_INCLUDE_DIR
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
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)