summaryrefslogtreecommitdiffstats
path: root/tests/auto/cmake/linguist/test_i18n_exclusion/apps/app1/CMakeLists.txt
blob: 0c1a8af5cd090f294e710420afe31ad032f6642b (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
# Copyright (C) 2023 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause

qt_add_executable(app1
    main.cpp
    excluded1.cpp
    subdir/excluded2.cpp
    ../shared/excluded3.cpp
)

# Note: subdir2/excluded4.cpp is deliberately not added to the sources. It's included in main.cpp,
# and lupdate picks up such source files. The exclusion pattern must work for those too.

set_property(TARGET app1 PROPERTY QT_EXCLUDE_SOURCES_FROM_TRANSLATION
    ../shared/*
    excluded?.cpp
    subdir/*
    subdir2/excluded4.cpp
)
target_link_libraries(app1 PRIVATE
    Qt6::Gui
    lib1
    lib2
)