summaryrefslogtreecommitdiffstats
path: root/tests/auto/cmake/test(needsquoting)dirname/CMakeLists.txt
blob: 0efc0252e732e8e1272fba8655f85b92a3a5341d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0


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)