1 Star 0 Fork 1

2144/SerialWizard

forked from 码蚁丶/SerialWizard 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 1.99 KB
一键复制 编辑 原始数据 按行查看 历史
cmake_minimum_required(VERSION 3.16)
project(SerialWizard)
set(CMAKE_CXX_STANDARD 20)
#set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin)
set(CMAKE_CXX_FLAGS_COVERAGE "${CMAKE_CXX_FLAGS_RELEASE} -fprofile-arcs -ftest-coverage")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Instruct CMake to run moc automatically when needed.
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(QT_DIR C:/Qt/Qt5.14.2/5.14.2/mingw73_32)
set(CMAKE_PREFIX_PATH ${QT_DIR} C:/Qt/Qt5.14.2/)
find_package(Qt5Widgets)
find_package(Qt5Core)
get_target_property(QtCore_location Qt5::Core LOCATION)
set_target_properties(Qt5::Core PROPERTIES MAP_IMPORTED_CONFIG_COVERAGE "RELEASE")
link_directories(${QT_DIR}/lib C:/Qt/Qt5.14.2/Tools/mingw730_32/lib)
foreach (plugin ${Qt5Network_PLUGINS})
get_target_property(_loc ${plugin} LOCATION)
message("Plugin ${plugin} is at location ${_loc}")
endforeach ()
set(SOURCE_FILES
main.cpp
MainWindow.cpp
MainWindow.h
CalculateCheckSumDialog.cpp
CalculateCheckSumDialog.h
ConvertDataDialog.cpp
ConvertDataDialog.h
FrameInfoDialog.cpp
FrameInfoDialog.h
global.cpp
global.h
data/AbstractReadWriter.cpp
data/AbstractReadWriter.h
data/SerialReadWriter.cpp
data/SerialReadWriter.h
data/TcpServerReadWriter.cpp
data/TcpServerReadWriter.h
data/BridgeReadWriter.cpp
data/BridgeReadWriter.h
serial/SerialController.cpp
serial/SerialController.h
serial/LineSerialController.cpp
serial/LineSerialController.h
data/TcpClientReadWriter.cpp
data/TcpClientReadWriter.h
data/SerialBridgeReadWriter.cpp
data/SerialBridgeReadWriter.h
DataProcessDialog.cpp
DataProcessDialog.h
utils/FileUtil.cpp
utils/FileUtil.h
)
#add_executable(SerialWizard ${SOURCE_FILES})
add_executable(SerialWizard WIN32 ${SOURCE_FILES})
qt5_use_modules(SerialWizard Widgets Core SerialPort Network)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/iamherer/SerialWizard.git
git@gitee.com:iamherer/SerialWizard.git
iamherer
SerialWizard
SerialWizard
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385