Debian Codegraph @

tests/auto/cmake/linguist/test_i18n_exclusion/apps/app1/CMakeLists.txt

raw
1 # Copyright (C) 2023 The Qt Company Ltd.
2 # SPDX-License-Identifier: BSD-3-Clause
3
4 qt_add_executable(app1
5 main.cpp
6 excluded1.cpp
7 subdir/excluded2.cpp
8 subdir/subdir3/excluded5.cpp
9 ../shared/excluded3.cpp
10 )
11
12 # Note: subdir2/excluded4.cpp is deliberately not added to the sources. It's included in main.cpp,
13 # and lupdate picks up such source files. The exclusion pattern must work for those too.
14
15 set_property(TARGET app1 PROPERTY QT_EXCLUDE_SOURCES_FROM_TRANSLATION
16 ../shared/*
17 excluded?.cpp
18 subdir/*
19 subdir2/excluded4.cpp
20 )
21 target_link_libraries(app1 PRIVATE
22 Qt6::Gui
23 lib1
24 lib2
25 )