summaryrefslogtreecommitdiffstats
path: root/tests/auto/cmake/test_add_resources_big_resources/leaf_lib.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/cmake/test_add_resources_big_resources/leaf_lib.cpp')
-rw-r--r--tests/auto/cmake/test_add_resources_big_resources/leaf_lib.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/cmake/test_add_resources_big_resources/leaf_lib.cpp b/tests/auto/cmake/test_add_resources_big_resources/leaf_lib.cpp
new file mode 100644
index 0000000000..8363ceec0a
--- /dev/null
+++ b/tests/auto/cmake/test_add_resources_big_resources/leaf_lib.cpp
@@ -0,0 +1,13 @@
+// Copyright (C) 2022 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+
+#include <QtCore/qfile.h>
+
+namespace leaf_lib {
+
+bool isResourceAvailable()
+{
+ return QFile::exists(u":/resource2.txt"_qs);
+}
+
+} // namespace