mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-31 17:42:55 +08:00
30 lines
571 B
CMake
30 lines
571 B
CMake
cmake_minimum_required(VERSION 3.20)
|
|
project(QCodeEditorExample)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
set(CMAKE_AUTOMOC On)
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
find_package(Qt6Core CONFIG REQUIRED)
|
|
find_package(Qt6Widgets CONFIG REQUIRED)
|
|
find_package(Qt6Gui CONFIG REQUIRED)
|
|
|
|
add_executable(QCodeEditorExample
|
|
resources/demo_resources.qrc
|
|
src/main.cpp
|
|
src/MainWindow.cpp
|
|
include/MainWindow.hpp
|
|
)
|
|
|
|
target_include_directories(QCodeEditorExample PUBLIC
|
|
include
|
|
)
|
|
|
|
target_link_libraries(QCodeEditorExample
|
|
Qt6::Core
|
|
Qt6::Widgets
|
|
Qt6::Gui
|
|
QCodeEditor
|
|
)
|