diff options
author | Kevin Funk <kevin.funk.ford@kdab.com> | 2017-04-11 09:15:40 +0200 |
---|---|---|
committer | Kevin Funk <kevin.funk@kdab.com> | 2017-04-11 10:29:00 +0000 |
commit | 3ddf345c9625e8d284d84ab70bc7800df29deb2a (patch) | |
tree | b5af0bd858fe5110fa40e508294a80267b849ea6 | |
parent | d30914d4153af3dbf17408879c013dc33dfa6549 (diff) |
Add CMake test case for qt5_generate_repc
Note this patch is not fixing the issue from the referenced bug report,
it's merely verifying the current (buggy) behavior
Change-Id: Ic6a2525e4d574111c767f84da4ccaa2f07868da3
Task-number: QTBUG-60051
Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
-rw-r--r-- | tests/auto/cmake/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/auto/cmake/test_cmake_macros/CMakeLists.txt | 12 | ||||
-rw-r--r-- | tests/auto/cmake/test_cmake_macros/main.cpp | 45 |
3 files changed, 58 insertions, 0 deletions
diff --git a/tests/auto/cmake/CMakeLists.txt b/tests/auto/cmake/CMakeLists.txt index 62fc89a..e9dbbc6 100644 --- a/tests/auto/cmake/CMakeLists.txt +++ b/tests/auto/cmake/CMakeLists.txt @@ -10,3 +10,4 @@ find_package(Qt5Core REQUIRED) include("${_Qt5CTestMacros}") expect_pass(test_qremoteobjects_module) +expect_pass(test_cmake_macros) diff --git a/tests/auto/cmake/test_cmake_macros/CMakeLists.txt b/tests/auto/cmake/test_cmake_macros/CMakeLists.txt new file mode 100644 index 0000000..c192878 --- /dev/null +++ b/tests/auto/cmake/test_cmake_macros/CMakeLists.txt @@ -0,0 +1,12 @@ +cmake_minimum_required(VERSION 2.8) + +project(test_qremoteobjects_module) + +find_package(Qt5RemoteObjects REQUIRED) + +include_directories(${CMAKE_CURRENT_BINARY_DIR}) + +set(MAIN_SRCS main.cpp) +qt5_generate_repc(MAIN_SRCS ../../integration/pod.rep REPLICA) +add_executable(mainapp ${MAIN_SRCS}) +target_link_libraries(mainapp Qt5::RemoteObjects) diff --git a/tests/auto/cmake/test_cmake_macros/main.cpp b/tests/auto/cmake/test_cmake_macros/main.cpp new file mode 100644 index 0000000..9fed259 --- /dev/null +++ b/tests/auto/cmake/test_cmake_macros/main.cpp @@ -0,0 +1,45 @@ +/**************************************************************************** +** +** Copyright (C) 2017 Ford Motor Company +** Contact: https://www.qt.io/licensing/ +** +** This file is part of the QtRemoteObjects module of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL21$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see http://www.qt.io/terms-conditions. For further +** information use the contact form at http://www.qt.io/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 or version 3 as published by the Free +** Software Foundation and appearing in the file LICENSE.LGPLv21 and +** LICENSE.LGPLv3 included in the packaging of this file. Please review the +** following information to ensure the GNU Lesser General Public License +** requirements will be met: https://www.gnu.org/licenses/lgpl.html and +** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** As a special exception, The Qt Company gives you certain additional +** rights. These rights are described in The Qt Company LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include <QRemoteObjectNode> + +#include "pod_replica.h" + +int main(int argc, char **argv) +{ + QRemoteObjectNode node; + + MyClassReplica replica; + + return 0; +} |