diff --git a/CMakeLists.txt b/CMakeLists.txt index 2444e92..dc89047 100644 --- a/CMakeLists.txt +++ b/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() diff --git a/mainwindow.cpp b/src/mainwindow.cpp similarity index 100% rename from mainwindow.cpp rename to src/mainwindow.cpp diff --git a/mainwindow.h b/src/mainwindow.h similarity index 100% rename from mainwindow.h rename to src/mainwindow.h diff --git a/mainwindow.ui b/src/mainwindow.ui similarity index 99% rename from mainwindow.ui rename to src/mainwindow.ui index 9e37987..385d7b2 100644 --- a/mainwindow.ui +++ b/src/mainwindow.ui @@ -17,7 +17,7 @@ - 黄金测试上位机 + A8000上位机 /*