summaryrefslogtreecommitdiffstats
path: root/tests/auto/cmake/test_add_resources_big_resources/intermediate_lib.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2022-07-14 17:23:15 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2022-08-09 15:21:52 +0200
commit9ce5709fb1b4e5d563ea1d90a6cf1fc6e365d3d9 (patch)
tree282332f6641ed4230584e647353a021efbee03b3 /tests/auto/cmake/test_add_resources_big_resources/intermediate_lib.cpp
parent0ce5c0a9969bc8c763ab50b6271e203c2bcb90de (diff)
CMake: Support big resources in qt_add_resources
[ChangeLog][CMake] The target-based variant of qt6_add_resource gained the option BIG_RESOURCES. This can be used instead of qt6_add_big_resources, which is not target-based. Fixes: QTBUG-100268 Change-Id: Ib3fa783cbfbfd10f59c2f952bc88508a91f25e26 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests/auto/cmake/test_add_resources_big_resources/intermediate_lib.cpp')
-rw-r--r--tests/auto/cmake/test_add_resources_big_resources/intermediate_lib.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/auto/cmake/test_add_resources_big_resources/intermediate_lib.cpp b/tests/auto/cmake/test_add_resources_big_resources/intermediate_lib.cpp
new file mode 100644
index 0000000000..00817d496d
--- /dev/null
+++ b/tests/auto/cmake/test_add_resources_big_resources/intermediate_lib.cpp
@@ -0,0 +1,20 @@
+// Copyright (C) 2022 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
+#include "leaf_lib.h"
+
+#include <QtCore/qfile.h>
+
+namespace intermediate_lib {
+
+bool isLeafLibResourceAvailable()
+{
+ return leaf_lib::isResourceAvailable();
+}
+
+bool isResourceAvailable()
+{
+ return QFile::exists(u":/resource3.txt"_qs);
+}
+
+} // namespace