aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmltime/CMakeLists.txt
blob: e8d2ff8f57dfe1c255e33761964c39fc5d52a0d5 (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
# Generated from qmltime.pro.

#####################################################################
## qmltime Tool:
#####################################################################

qt_get_tool_target_name(target_name qmltime)
qt_internal_add_tool(${target_name}
    TARGET_DESCRIPTION "QML Time"
    TOOLS_TARGET Qml # special case
    SOURCES
        qmltime.cpp qmltime.h
    PUBLIC_LIBRARIES
        Qt::Gui
        Qt::Qml
        Qt::Quick
        Qt::QuickPrivate
)

# Don't set properties on a host tool when cross compiling, because it
# is not being built.
if(CMAKE_CROSSCOMPILING AND NOT QT_BUILD_TOOLS_WHEN_CROSSCOMPILING)
    return()
endif()

# Turn the tool into its own self-contained qml module
qt6_add_qml_module(${target_name}
    URI QmlTime
    VERSION 1.0
    NO_CREATE_PLUGIN_TARGET
)