summaryrefslogtreecommitdiffstats
path: root/src/activeqt/control/CMakeLists.txt
blob: 74e4fb72f03de41feeb8d01b65ae7dfab9aa2a92 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause

#####################################################################
## AxServer Module:
#####################################################################

qt_internal_add_module(AxServer
    STATIC
    QMAKE_MODULE_CONFIG idcidl force_import_plugins
    SOURCES
        ../shared/qaxtypes.cpp ../shared/qaxtypes_p.h
        qaxaggregated.cpp qaxaggregated.h
        qaxbindable.cpp qaxbindable.h
        qaxfactory.cpp qaxfactory.h
        qaxmain.cpp
        qaxserver.cpp
        qaxserverbase.cpp
        qaxserverdll.cpp
        qaxservermain.cpp
        qclassfactory_p.h
    DEFINES
        QAX_SERVER
    PUBLIC_DEFINES
        QAXSERVER
    LIBRARIES
        Qt::AxBasePrivate
        Qt::CorePrivate
        Qt::GuiPrivate
        Qt::WidgetsPrivate
    PUBLIC_LIBRARIES
        Qt::Core
        Qt::Gui
        Qt::Widgets
        shell32
    NO_GENERATE_CPP_EXPORTS
)

set_source_files_properties(qaxservermain.cpp # define main()
                            qaxmain.cpp
                            PROPERTIES SKIP_UNITY_BUILD_INCLUSION ON)

## Scopes:
#####################################################################

qt_internal_extend_target(AxServer CONDITION MINGW
    DEFINES
        QT_NEEDS_QMAIN
)