mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-28 01:49:23 -05:00
Tests: Autogen: Extend SameName test with additional header extensions
This adds additional headers with suffixes ".hh" and uppercase ".H" to the QtAutogen/SameName test.
This commit is contained in:
@@ -18,9 +18,11 @@ add_executable(sameName
|
|||||||
ccc/data.qrc
|
ccc/data.qrc
|
||||||
item.cpp
|
item.cpp
|
||||||
object.h
|
object.h
|
||||||
|
object.hh
|
||||||
object.h++
|
object.h++
|
||||||
object.hpp
|
object.hpp
|
||||||
object.hxx
|
object.hxx
|
||||||
|
object_upper_ext.H
|
||||||
data.qrc
|
data.qrc
|
||||||
main.cpp
|
main.cpp
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,8 +6,10 @@
|
|||||||
#include "item.hpp"
|
#include "item.hpp"
|
||||||
#include "object.h"
|
#include "object.h"
|
||||||
#include "object.h++"
|
#include "object.h++"
|
||||||
|
#include "object.hh"
|
||||||
#include "object.hpp"
|
#include "object.hpp"
|
||||||
#include "object.hxx"
|
#include "object.hxx"
|
||||||
|
#include "object_upper_ext.H"
|
||||||
|
|
||||||
int main(int argv, char** args)
|
int main(int argv, char** args)
|
||||||
{
|
{
|
||||||
@@ -20,8 +22,10 @@ int main(int argv, char** args)
|
|||||||
::ccc::Item ccc_item;
|
::ccc::Item ccc_item;
|
||||||
// Object instances
|
// Object instances
|
||||||
::Object_h obj_h;
|
::Object_h obj_h;
|
||||||
|
::Object_hh obj_hh;
|
||||||
::Object_hplpl obj_hplpl;
|
::Object_hplpl obj_hplpl;
|
||||||
::Object_hpp obj_hpp;
|
::Object_hpp obj_hpp;
|
||||||
::Object_hxx obj_hxx;
|
::Object_hxx obj_hxx;
|
||||||
|
::Object_Upper_Ext_H obj_upper_ext_h;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
#ifndef OBJECT_HH
|
||||||
|
#define OBJECT_HH
|
||||||
|
|
||||||
|
#include <QObject>
|
||||||
|
|
||||||
|
class Object_hh : public QObject
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
Q_SLOT
|
||||||
|
void go(){};
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
#ifndef OBJECT_UPPER_EXT_H
|
||||||
|
#define OBJECT_UPPER_EXT_H
|
||||||
|
|
||||||
|
#include <QObject>
|
||||||
|
|
||||||
|
class Object_Upper_Ext_H : public QObject
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
Q_SLOT
|
||||||
|
void go(){};
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
Reference in New Issue
Block a user