mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-06 09:15:23 +08:00
qt 6.5.1 original
This commit is contained in:
18
tests/auto/cmake/test_json_plugin_includes/CMakeLists.txt
Normal file
18
tests/auto/cmake/test_json_plugin_includes/CMakeLists.txt
Normal file
@ -0,0 +1,18 @@
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
project(test_json_plugin_includes)
|
||||
|
||||
find_package(Qt6Core REQUIRED)
|
||||
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/jsontestplugin.json" "{}\n")
|
||||
|
||||
qt_wrap_cpp(moc_files plugin.h)
|
||||
|
||||
add_library(plugin plugin.cpp ${moc_files})
|
||||
target_link_libraries(plugin Qt::Core)
|
12
tests/auto/cmake/test_json_plugin_includes/plugin.cpp
Normal file
12
tests/auto/cmake/test_json_plugin_includes/plugin.cpp
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2012 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Stephen Kelly <stephen.kelly@kdab.com>
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include "plugin.h"
|
||||
|
||||
JsonTestPlugin::JsonTestPlugin(QObject *parent)
|
||||
: QObject(parent)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#include "moc_plugin.cpp"
|
17
tests/auto/cmake/test_json_plugin_includes/plugin.h
Normal file
17
tests/auto/cmake/test_json_plugin_includes/plugin.h
Normal file
@ -0,0 +1,17 @@
|
||||
// Copyright (C) 2012 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Stephen Kelly <stephen.kelly@kdab.com>
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#ifndef JSON_TEST_PLUGIN_H
|
||||
#define JSON_TEST_PLUGIN_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
class JsonTestPlugin : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "JsonTestPlugin" FILE "jsontestplugin.json")
|
||||
public:
|
||||
JsonTestPlugin(QObject *parent = nullptr);
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user