File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 11
11
bin_PROGRAMS = testqgsapplication
12
12
13
13
14
- % .moc.cpp : % .cpp
14
+ % .moc.cpp : % .h
15
15
$(MOC ) -o $@ $<
16
16
17
17
testqgsapplication_MOC = testqgsapplication.moc.cpp
18
- testqgsapplication_SOURCES = $( testqgsapplication_MOC ) testqgsapplication.h testqgsapplication.cpp
18
+ testqgsapplication_SOURCES = testqgsapplication.cpp
19
19
20
- testqgsapplication_LDADD = $(QT_LDADD ) $(PG_LIB ) $(GDAL_LDADD ) -lproj ../../../src/core/libqgis_core.la ../../../src/gui/libqgis_gui.la
20
+ testqgsapplication_LDADD = $(QT_LDADD ) $(PG_LIB ) $(GDAL_LDADD ) -lproj ../../../src/core/libqgis_core.la ../../../src/gui/libqgis_gui.la -lQtTest
21
21
testqgsapplication_CXXFLAGS = $(CXXFLAGS ) $(EXTRA_CXXFLAGS ) $(GDAL_CFLAGS ) $(QT_CXXFLAGS ) $(PG_INC ) -I../../../src/core
22
22
23
+ BUILT_SOURCES = $(testqgsapplication_MOC )
24
+
25
+ CLEANFILES = $(BUILT_SOURCES )
Original file line number Diff line number Diff line change 1
- #include < QtTest>
1
+ #include < QtTest/QtTest >
2
2
#include < qgsapplication.h>
3
3
#include " testqgsapplication.h"
4
4
#include < QObject>
@@ -10,11 +10,13 @@ TestQgsApplication::TestQgsApplication() : QObject()
10
10
11
11
}
12
12
13
+
13
14
TestQgsApplication::~TestQgsApplication ()
14
15
{
15
16
16
17
}
17
18
19
+
18
20
void TestQgsApplication::authorsFilePath ()
19
21
{
20
22
QString myPath = QgsApplication::authorsFilePath ();
You can’t perform that action at this time.
0 commit comments