tests/auto/cmake/test_uiplugin_via_designer/CMakeLists.txt
raw| 1 | # Copyright (C) 2022 The Qt Company Ltd. |
| 2 | # SPDX-License-Identifier: BSD-3-Clause |
| 3 | |
| 4 | cmake_minimum_required(VERSION 3.16) |
| 5 | project(test_uiplugin_via_designer) |
| 6 | |
| 7 | find_package(Qt6 COMPONENTS Widgets Xml Designer REQUIRED) |
| 8 | |
| 9 | set(CMAKE_AUTOMOC ON) |
| 10 | |
| 11 | |
| 12 | add_definitions(-DTEST_UIPLUGIN_USAGE_REQUIREMENTS=1) |
| 13 | |
| 14 | add_library(my_uiplugin_via_designer my_designer_plugin.cpp) |
| 15 | target_link_libraries(my_uiplugin_via_designer Qt::Designer) |