75d2f167f4
This amends commit 32df595275
Task-number: QTBUG-105718
Change-Id: Ie3cadac4e424bfc26f3223dcee45491e3d6bd7e0
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
19 lines
405 B
CMake
19 lines
405 B
CMake
# Copyright (C) 2022 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
|
|
cmake_minimum_required(VERSION 3.16)
|
|
|
|
project("test(needsquoting)dirname")
|
|
|
|
find_package(Qt6Widgets REQUIRED)
|
|
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
qt_wrap_cpp(moc_files mywidget.h)
|
|
qt_wrap_ui(ui_files mywidget.ui)
|
|
|
|
add_executable(mywidget mywidget.cpp ${moc_files} ${ui_files})
|
|
target_link_libraries(mywidget Qt::Widgets)
|