1
0
mirror of https://github.com/rene-dev/stmbl.git synced 2024-12-18 22:52:08 +00:00
stmbl/term/cmake/Modules/Findlibserialport.cmake
2014-08-20 18:06:24 +02:00

16 lines
698 B
CMake

find_library(LIBSERIALPORT_LIBRARY serialport REQUIRED)
MESSAGE(STATUS "LIBSERIALPORT_LIBRARY = ${LIBSERIALPORT_LIBRARY}")
find_path(LIBSERIALPORT_INCLUDE_DIR libserialport.h)
MESSAGE(STATUS "LIBSERIALPORT_INCLUDE_DIR = ${LIBSERIALPORT_INCLUDE_DIR}")
set(LIBSERIALPORT_LIBRARIES ${LIBSERIALPORT_LIBRARY})
set(LIBSERIALPORT_INCLUDE_DIRS ${LIBSERIALPORT_INCLUDE_DIR})
MESSAGE(STATUS "LIBSERIALPORT_LIBRARIES = ${LIBSERIALPORT_LIBRARIES}")
include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set LIBXML2_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args(libserialport DEFAULT_MSG LIBSERIALPORT_LIBRARY LIBSERIALPORT_INCLUDE_DIR)