blob: 81023c33828c46d3df0b7c9aa5da3ca7ba02cdc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Copyright (C) 2023 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
cmake_minimum_required(VERSION 3.16)
project(UicIncrementalBuild LANGUAGES CXX)
find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)
set(CMAKE_AUTOMOC ON)
qt_add_executable(example
src/mainwindow.ui
src/widget1.ui
src/widget2.ui
src/mainwindow.h
src/widget1.h
src/widget2.h
src/main.cpp
src/mainwindow.cpp
src/widget1.cpp
src/widget2.cpp
)
target_link_libraries(example PRIVATE Qt6::Widgets
Qt6::Core
Qt6::Gui)
qt6_add_ui(example
INCLUDE_PREFIX "src"
SOURCES "src/mainwindow.ui" "src/widget1.ui" "src/widget2.ui"
OPTIONS "$<$<CONFIG:Debug>:-a>")
|