1
0
mirror of https://github.com/rene-dev/stmbl.git synced 2024-12-23 17:12:19 +00:00
stmbl/term/cmake/Modules/Findlibserialport.cmake

16 lines
698 B
CMake
Raw Permalink Normal View History

2014-08-20 16:06:24 +00:00
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)