-
Notifications
You must be signed in to change notification settings - Fork 0
/
qt_CMakeLists.txt
45 lines (41 loc) · 1.22 KB
/
qt_CMakeLists.txt
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
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
#####################################################################
## moc Tool:
#####################################################################
qt_get_tool_target_name(target_name moc)
qt_internal_add_tool(${target_name}
CORE_LIBRARY Bootstrap
TARGET_DESCRIPTION "Qt Meta Object Compiler"
INSTALL_DIR "${INSTALL_LIBEXECDIR}"
TOOLS_TARGET Core
SOURCES
cbordevice.h
collectjson.cpp collectjson.h
generator.cpp generator.h
main.cpp
moc.cpp moc.h
outputrevision.h
parser.cpp parser.h
preprocessor.cpp preprocessor.h
# qdatetime_p.h special case remove
symbols.h
token.cpp token.h
utils.h
DEFINES
QT_MOC
QT_NO_CAST_FROM_ASCII
QT_NO_CAST_FROM_BYTEARRAY
QT_NO_FOREACH
INCLUDE_DIRECTORIES
${CMAKE_CURRENT_SOURCE_DIR}
../../3rdparty/tinycbor/src
../shared
)
qt_internal_return_unless_building_tools()
## Scopes:
#####################################################################
qt_internal_extend_target(${target_name} CONDITION MSVC
DEFINES
_CRT_SECURE_NO_WARNINGS
)