28 lines
644 B
CMake
Executable File
28 lines
644 B
CMake
Executable File
cmake_minimum_required(VERSION 3.21)
|
|
project(com)
|
|
set(CMAKE_PREFIX_PATH "C:\\Programs\\Qt\\6.2.4\\msvc2019_64")
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
set(CMAKE_AUTOMOC ON)
|
|
set(CMAKE_AUTORCC ON)
|
|
set(CMAKE_AUTOUIC ON)
|
|
|
|
#OPTION(USE ntddmodm ON)
|
|
find_package(Qt6 COMPONENTS
|
|
Core
|
|
Gui
|
|
Widgets
|
|
SerialPort
|
|
Charts
|
|
REQUIRED)
|
|
|
|
add_executable(com main.cpp main_window.cpp main_window.h GChartView.cpp GChartView.h)
|
|
#add_executable(untitled WIN32 main.cpp main_window.cpp main_window.h)
|
|
target_link_libraries(com
|
|
Qt::Core
|
|
Qt::Gui
|
|
Qt::Widgets
|
|
Qt::Charts
|
|
Qt6::SerialPort
|
|
)
|
|
|