diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-09-07 09:54:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-09-18 15:48:10 (GMT) |
commit | 706d9738a614724a96487be074e984a7e86c48c9 (patch) | |
tree | 493877be2a31e9c2bd1722a162fb98a891e324f2 /Tests/QtAutogen/MocIncludeRelaxed | |
parent | d018d27c101869e4e2449f938df89d4f97c5b73c (diff) | |
download | CMake-706d9738a614724a96487be074e984a7e86c48c9.zip CMake-706d9738a614724a96487be074e984a7e86c48c9.tar.gz CMake-706d9738a614724a96487be074e984a7e86c48c9.tar.bz2 |
Tests: Merge QtAutogen.MocIncludeStrict and MocIncludeRelaxed
Diffstat (limited to 'Tests/QtAutogen/MocIncludeRelaxed')
-rw-r--r-- | Tests/QtAutogen/MocIncludeRelaxed/CMakeLists.txt | 20 | ||||
-rw-r--r-- | Tests/QtAutogen/MocIncludeRelaxed/RMain.cpp | 12 | ||||
-rw-r--r-- | Tests/QtAutogen/MocIncludeRelaxed/RObjA.cpp | 12 | ||||
-rw-r--r-- | Tests/QtAutogen/MocIncludeRelaxed/RObjA.hpp | 14 | ||||
-rw-r--r-- | Tests/QtAutogen/MocIncludeRelaxed/RObjB.cpp | 22 | ||||
-rw-r--r-- | Tests/QtAutogen/MocIncludeRelaxed/RObjB.hpp | 14 | ||||
-rw-r--r-- | Tests/QtAutogen/MocIncludeRelaxed/RObjBExtra.hpp | 14 | ||||
-rw-r--r-- | Tests/QtAutogen/MocIncludeRelaxed/RObjC.cpp | 30 | ||||
-rw-r--r-- | Tests/QtAutogen/MocIncludeRelaxed/RObjC.hpp | 14 | ||||
-rw-r--r-- | Tests/QtAutogen/MocIncludeRelaxed/main.cpp | 26 |
10 files changed, 0 insertions, 178 deletions
diff --git a/Tests/QtAutogen/MocIncludeRelaxed/CMakeLists.txt b/Tests/QtAutogen/MocIncludeRelaxed/CMakeLists.txt deleted file mode 100644 index 8b4da34..0000000 --- a/Tests/QtAutogen/MocIncludeRelaxed/CMakeLists.txt +++ /dev/null @@ -1,20 +0,0 @@ -cmake_minimum_required(VERSION 3.10) -project(MocIncludeRelaxed) -include("../AutogenCoreTest.cmake") - -# Test moc include patterns -set(CMAKE_AUTOMOC_RELAXED_MODE TRUE) - -# Shared executable -set(MOC_INCLUDE_NAME "mocIncludeRelaxed") -include(${CMAKE_CURRENT_SOURCE_DIR}/../MocInclude/shared.cmake) - -# Relaxed only executable -add_executable(mocIncludeRelaxedOnly - RObjA.cpp - RObjB.cpp - RObjC.cpp - RMain.cpp -) -target_link_libraries(mocIncludeRelaxedOnly ${QT_LIBRARIES}) -set_target_properties(mocIncludeRelaxedOnly PROPERTIES AUTOMOC ON) diff --git a/Tests/QtAutogen/MocIncludeRelaxed/RMain.cpp b/Tests/QtAutogen/MocIncludeRelaxed/RMain.cpp deleted file mode 100644 index 5b2c070..0000000 --- a/Tests/QtAutogen/MocIncludeRelaxed/RMain.cpp +++ /dev/null @@ -1,12 +0,0 @@ -// Relaxed AUTOMOC objects -#include "RObjA.hpp" -#include "RObjB.hpp" -#include "RObjC.hpp" - -int main(int argv, char** args) -{ - RObjA rObjA; - RObjB rObjB; - RObjC rObjC; - return 0; -} diff --git a/Tests/QtAutogen/MocIncludeRelaxed/RObjA.cpp b/Tests/QtAutogen/MocIncludeRelaxed/RObjA.cpp deleted file mode 100644 index 2e2cf6a..0000000 --- a/Tests/QtAutogen/MocIncludeRelaxed/RObjA.cpp +++ /dev/null @@ -1,12 +0,0 @@ -#include "RObjA.hpp" - -RObjA::RObjA() -{ -} - -RObjA::~RObjA() -{ -} - -// Relaxed include should moc the header instead -#include "RObjA.moc" diff --git a/Tests/QtAutogen/MocIncludeRelaxed/RObjA.hpp b/Tests/QtAutogen/MocIncludeRelaxed/RObjA.hpp deleted file mode 100644 index 5974187..0000000 --- a/Tests/QtAutogen/MocIncludeRelaxed/RObjA.hpp +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef ROBJA_HPP -#define ROBJA_HPP - -#include <QObject> - -class RObjA : public QObject -{ - Q_OBJECT -public: - RObjA(); - ~RObjA(); -}; - -#endif diff --git a/Tests/QtAutogen/MocIncludeRelaxed/RObjB.cpp b/Tests/QtAutogen/MocIncludeRelaxed/RObjB.cpp deleted file mode 100644 index c56d10f..0000000 --- a/Tests/QtAutogen/MocIncludeRelaxed/RObjB.cpp +++ /dev/null @@ -1,22 +0,0 @@ -#include "RObjB.hpp" -#include "RObjBExtra.hpp" - -RObjBExtra::RObjBExtra() -{ -} - -RObjBExtra::~RObjBExtra() -{ -} - -RObjB::RObjB() -{ - RObjBExtra extraObject; -} - -RObjB::~RObjB() -{ -} - -// Relaxed mode should run moc on RObjBExtra.hpp instead -#include "RObjBExtra.moc" diff --git a/Tests/QtAutogen/MocIncludeRelaxed/RObjB.hpp b/Tests/QtAutogen/MocIncludeRelaxed/RObjB.hpp deleted file mode 100644 index d6d0474..0000000 --- a/Tests/QtAutogen/MocIncludeRelaxed/RObjB.hpp +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef ROBJB_HPP -#define ROBJB_HPP - -#include <QObject> - -class RObjB : public QObject -{ - Q_OBJECT -public: - RObjB(); - ~RObjB(); -}; - -#endif diff --git a/Tests/QtAutogen/MocIncludeRelaxed/RObjBExtra.hpp b/Tests/QtAutogen/MocIncludeRelaxed/RObjBExtra.hpp deleted file mode 100644 index 5d6be75..0000000 --- a/Tests/QtAutogen/MocIncludeRelaxed/RObjBExtra.hpp +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef ROBJBEXTRA_HPP -#define ROBJBEXTRA_HPP - -#include <QObject> - -class RObjBExtra : public QObject -{ - Q_OBJECT -public: - RObjBExtra(); - ~RObjBExtra(); -}; - -#endif diff --git a/Tests/QtAutogen/MocIncludeRelaxed/RObjC.cpp b/Tests/QtAutogen/MocIncludeRelaxed/RObjC.cpp deleted file mode 100644 index 4ba32f5..0000000 --- a/Tests/QtAutogen/MocIncludeRelaxed/RObjC.cpp +++ /dev/null @@ -1,30 +0,0 @@ -#include "RObjC.hpp" -#include <QObject> - -class RObjCPrivate : public QObject -{ - Q_OBJECT -public: - RObjCPrivate(); - ~RObjCPrivate(); -}; - -RObjCPrivate::RObjCPrivate() -{ -} - -RObjCPrivate::~RObjCPrivate() -{ -} - -RObjC::RObjC() -{ - RObjCPrivate privateObject; -} - -RObjC::~RObjC() -{ -} - -// Relaxed include should moc this source instead of the header -#include "moc_RObjC.cpp" diff --git a/Tests/QtAutogen/MocIncludeRelaxed/RObjC.hpp b/Tests/QtAutogen/MocIncludeRelaxed/RObjC.hpp deleted file mode 100644 index 5552ede..0000000 --- a/Tests/QtAutogen/MocIncludeRelaxed/RObjC.hpp +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef ROBJC_HPP -#define ROBJC_HPP - -#include <QObject> - -class RObjC : public QObject -{ - Q_OBJECT -public: - RObjC(); - ~RObjC(); -}; - -#endif diff --git a/Tests/QtAutogen/MocIncludeRelaxed/main.cpp b/Tests/QtAutogen/MocIncludeRelaxed/main.cpp deleted file mode 100644 index 5a3148d..0000000 --- a/Tests/QtAutogen/MocIncludeRelaxed/main.cpp +++ /dev/null @@ -1,26 +0,0 @@ -#include "EObjA.hpp" -#include "EObjB.hpp" -#include "LObjA.hpp" -#include "LObjB.hpp" -#include "ObjA.hpp" -#include "ObjB.hpp" -#include "SObjA.hpp" -#include "SObjB.hpp" -#include "subGlobal/GObj.hpp" - -int main(int argv, char** args) -{ - subGlobal::GObj gObj; - ObjA objA; - ObjB objB; - LObjA lObjA; - LObjB lObjB; - EObjA eObjA; - EObjB eObjB; - SObjA sObjA; - SObjB sObjB; - return 0; -} - -// Header in global subdirectory -#include "subGlobal/moc_GObj.cpp" |