diff --git a/tests/src/core/Makefile.am b/tests/src/core/Makefile.am index c921b76c447..185f782289e 100644 --- a/tests/src/core/Makefile.am +++ b/tests/src/core/Makefile.am @@ -21,7 +21,7 @@ GLOBALCXXFLAGS = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(GDAL_CFLAGS) $(QT_CXXFLAGS) $(P # Instruction for running the qt4 meta object compiler # -%.moc.cpp: %.h +%.moc.cpp: %.cpp $(MOC) -o $@ $< # diff --git a/tests/src/core/testqgsapplication.cpp b/tests/src/core/testqgsapplication.cpp index 5f0a9ed4e05..d492539a031 100644 --- a/tests/src/core/testqgsapplication.cpp +++ b/tests/src/core/testqgsapplication.cpp @@ -1,8 +1,17 @@ #include -#include -#include "testqgsapplication.h" #include #include +#include +//header for class being tested +#include + +class TestQgsApplication: public QObject +{ + Q_OBJECT; + public: + private slots: + void authorsFilePath(); +}; void TestQgsApplication::authorsFilePath() diff --git a/tests/src/core/testqgsapplication.h b/tests/src/core/testqgsapplication.h deleted file mode 100644 index ddd439f48fc..00000000000 --- a/tests/src/core/testqgsapplication.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef TESTQGSAPPLICATION_H -#define TESTQGSAPPLICATION_H -#include -#include - -class TestQgsApplication: public QObject -{ - Q_OBJECT; - public: - private slots: - void authorsFilePath(); -}; - -#endif