summaryrefslogtreecommitdiffstats
path: root/src/uiplugin/CMakeLists.txt
blob: c0193dc3cd929cd6a3297b55d4338da6a711f5a9 (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
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause

#####################################################################
## UiPlugin Module:
#####################################################################

qt_internal_add_module(UiPlugin
    NO_PRIVATE_MODULE
    HEADER_MODULE
    QMAKE_MODULE_CONFIG designer_defines
    SOURCES
        customwidget.h
        qdesignerexportwidget.h
    PUBLIC_LIBRARIES
        Qt::Core
        Qt::Gui
        Qt::Widgets
    NO_GENERATE_CPP_EXPORTS
)

set(is_plugin "$<TARGET_PROPERTY:QT_PLUGIN_CLASS_NAME>")
target_compile_definitions(
    UiPlugin
    INTERFACE
        $<$<BOOL:${is_plugin}>:QDESIGNER_EXPORT_WIDGETS>
)