当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 27

batwen / CSerialPort
暂停

forked from itas109 / CSerialPort 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
cserialport-config.cmake 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
itas109 提交于 2020-10-05 20:25 . update cserialport-config.cmake
# @file cserialport-config.cmake
# @author itas109 (itas109@qq.com) \n\n
# Blog : https://blog.csdn.net/itas109 \n
# Github : https://github.com/itas109 \n
# QQ Group : 12951803
# @brief a lightweight library of serial port, which can easy to read and write serical port on windows and linux with C++ 轻量级跨平台串口读写类库
# @copyright The CSerialPort is Copyright (C) 2020 itas109. \n
# Contact: itas109@qq.com \n\n
# You may use, distribute and copy the CSerialPort under the terms of \n
# GNU Lesser General Public License version 3, which is displayed below.
set(CSerialPort_FOUND FALSE)
if(NOT CSerialPort_INCLUDE_DIR)
find_path(CSerialPort_INCLUDE_DIR NAMES
CSerialPort/SerialPort.h
HINTS ${PC_CSerialPort_INCLUDEDIR} ${PC_CSerialPort_INCLUDE_DIRS}
PATH_SUFFIXES CSerialPort )
mark_as_advanced(CSerialPort_INCLUDE_DIR)
endif()
if(NOT CSerialPort_LIBRARY)
find_library(CSerialPort_LIBRARY NAMES
cserialport
libcserialport
HINTS ${PC_CSerialPort_LIBDIR} ${PC_CSerialPort_LIBRARY_DIRS}
)
mark_as_advanced(CSerialPort_LIBRARY)
endif()
if(CSerialPort_INCLUDE_DIR AND CSerialPort_LIBRARY)
set(CSerialPort_FOUND TRUE)
message(STATUS "FOUND CSerialPort, ${CSerialPort_LIBRARY}")
endif()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/batwen/CSerialPort.git
git@gitee.com:batwen/CSerialPort.git
batwen
CSerialPort
CSerialPort
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891