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

#####################################################################
## uic Tool:
#####################################################################

qt_get_tool_target_name(target_name uic)
qt_internal_add_tool(${target_name}
    TRY_RUN
    TARGET_DESCRIPTION "Qt User Interface Compiler"
    INSTALL_DIR "${INSTALL_LIBEXECDIR}"
    TOOLS_TARGET Widgets
    SOURCES
        cpp/cppwritedeclaration.cpp cpp/cppwritedeclaration.h
        cpp/cppwriteincludes.cpp cpp/cppwriteincludes.h
        cpp/cppwriteinitialization.cpp cpp/cppwriteinitialization.h
        customwidgetsinfo.cpp customwidgetsinfo.h
        databaseinfo.cpp databaseinfo.h
        driver.cpp driver.h
        main.cpp
        option.h
        python/pythonwritedeclaration.cpp python/pythonwritedeclaration.h
        python/pythonwriteimports.cpp python/pythonwriteimports.h
        shared/language.cpp shared/language.h
        shared/writeincludesbase.cpp shared/writeincludesbase.h
        treewalker.cpp treewalker.h
        ui4.cpp ui4.h
        uic.cpp uic.h
        utils.h
        validator.cpp validator.h
    DEFINES
        QT_NO_CAST_FROM_ASCII
        QT_NO_FOREACH
        QT_USE_NODISCARD_FILE_OPEN
        QT_UIC
    INCLUDE_DIRECTORIES
        ${CMAKE_CURRENT_SOURCE_DIR}
        # ${PROJECT_BINARY_DIR}/src/tools/uic # special case remove
        cpp
        python
        shared
)
qt_internal_return_unless_building_tools()