Browse Source

init proj

master
zhaohe 1 year ago
parent
commit
1156b8defc
  1. 18
      CMakeLists.txt
  2. 0
      src/mainwindow.cpp
  3. 0
      src/mainwindow.h
  4. 2
      src/mainwindow.ui

18
CMakeLists.txt

@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.5)
project(graphite_digester_upper VERSION 0.1 LANGUAGES CXX)
project(a8000_pc_upper VERSION 0.1 LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
@ -27,9 +27,9 @@ set(PROJECT_SOURCES
libzqt/QFunction.cpp
libzqt/zworkqueue.cpp
src/main.cpp
mainwindow.cpp
mainwindow.h
mainwindow.ui
src/mainwindow.cpp
src/mainwindow.h
src/mainwindow.ui
src/qt_serial_datachannel.cpp
src/reglist.cpp
@ -47,19 +47,19 @@ set(PROJECT_SOURCES
)
add_executable(graphite_digester_upper WIN32
add_executable(a8000_pc_upper WIN32
${PROJECT_SOURCES}
)
target_link_options(graphite_digester_upper PRIVATE -static -static-libgcc -static-libstdc++)
target_link_options(a8000_pc_upper PRIVATE -static -static-libgcc -static-libstdc++)
target_link_libraries(graphite_digester_upper PRIVATE Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::SerialPort Qt${QT_VERSION_MAJOR}::Charts Qt${QT_VERSION_MAJOR}::Concurrent wsock32)
target_link_libraries(a8000_pc_upper PRIVATE Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::SerialPort Qt${QT_VERSION_MAJOR}::Charts Qt${QT_VERSION_MAJOR}::Concurrent wsock32)
set_target_properties(graphite_digester_upper PROPERTIES
set_target_properties(a8000_pc_upper PROPERTIES
MACOSX_BUNDLE_GUI_IDENTIFIER my.example.com
MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
)
if(QT_VERSION_MAJOR EQUAL 6)
qt_finalize_executable(graphite_digester_upper)
qt_finalize_executable(a8000_pc_upper)
endif()

0
mainwindow.cpp → src/mainwindow.cpp

0
mainwindow.h → src/mainwindow.h

2
mainwindow.ui → src/mainwindow.ui

@ -17,7 +17,7 @@
</sizepolicy>
</property>
<property name="windowTitle">
<string>黄金测试上位机</string>
<string>A8000上位机</string>
</property>
<property name="styleSheet">
<string notr="true">/*
Loading…
Cancel
Save