添加QCustomPlot模块

This commit is contained in:
duanshengchao 2024-12-20 16:44:50 +08:00
parent 7c2d409091
commit 9b00b92d23
3 changed files with 43307 additions and 0 deletions

View File

@ -11,6 +11,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS PrintSupport)
set(ADS_VERSION 4.3.1)
add_subdirectory(QtADS)
@ -96,6 +97,8 @@ set(UTIL_FILES
util/TimeLine/timeStampItem.cpp
util/TimeLine/eventItem.h
util/TimeLine/eventItem.cpp
util/Chart/qcustomplot.h
util/Chart/qcustomplot.cpp
)
#
@ -137,6 +140,7 @@ else()
endif()
target_include_directories(PowerMaster PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/include")
target_link_libraries(PowerMaster PRIVATE Qt${QT_VERSION_MAJOR}::PrintSupport)
target_link_libraries(PowerMaster PRIVATE qt${QT_VERSION_MAJOR}advanceddocking)
target_link_libraries(PowerMaster PUBLIC Qt${QT_VERSION_MAJOR}::Core
Qt${QT_VERSION_MAJOR}::Gui

35529
util/Chart/qcustomplot.cpp Normal file

File diff suppressed because it is too large Load Diff

7774
util/Chart/qcustomplot.h Normal file

File diff suppressed because it is too large Load Diff