2024-11-24 22:58:36 -05:00

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
)