diff options
Diffstat (limited to 'tests/auto/cmake/test_static_resources/test_init_resources_static_plugin/CMakeLists.txt')
-rw-r--r-- | tests/auto/cmake/test_static_resources/test_init_resources_static_plugin/CMakeLists.txt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/auto/cmake/test_static_resources/test_init_resources_static_plugin/CMakeLists.txt b/tests/auto/cmake/test_static_resources/test_init_resources_static_plugin/CMakeLists.txt new file mode 100644 index 0000000000..dec5588a6d --- /dev/null +++ b/tests/auto/cmake/test_static_resources/test_init_resources_static_plugin/CMakeLists.txt @@ -0,0 +1,36 @@ +# Copyright (C) 2022 The Qt Company Ltd. +# SPDX-License-Identifier: BSD-3-Clause + +qt_internal_add_plugin(TestInitResourcesStaticPlugin STATIC + NO_UNITY_BUILD + OUTPUT_NAME + testinitresourcesstaticplugin + PLUGIN_TYPE mockstaticresources + SOURCES + pluginmain.cpp + SKIP_INSTALL + LIBRARIES + Qt::Core +) + +qt_internal_add_resource(TestInitResourcesStaticPlugin "teststaticplugin1" + PREFIX + "/teststaticplugin1" + FILES + "testfile1.txt" +) + +qt_internal_add_resource(TestInitResourcesStaticPlugin "teststaticplugin2" + PREFIX + "/teststaticplugin2" + FILES + "testfile2.txt" +) + +qt_internal_add_test(test_init_resources_static_plugin + SOURCES + test_init_resources_static_plugin.cpp + LIBRARIES + Qt::Core + TestInitResourcesStaticPlugin +) |