File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ SET( QT_USE_QTXML TRUE )
106
106
SET ( QT_USE_QTNETWORK TRUE )
107
107
SET ( QT_USE_QTSVG TRUE )
108
108
IF (ENABLE_TESTS)
109
- SET ( QT_USE_QTTESTS TRUE )
109
+ SET ( QT_USE_QTTEST TRUE )
110
110
ENABLE_TESTING ()
111
111
ENDIF (ENABLE_TESTS)
112
112
# TODO: should not be needed, report it to CMake devs
Original file line number Diff line number Diff line change 4
4
# application test
5
5
6
6
SET (applicationtest_SRCS testqgsapplication.cpp)
7
- QT4_GENERATE_MOC(${CMAKE_CURRENT_SOURCE_DIR} /testqgsapplication.cpp testqgsapplication.moc)
8
- #SET(applicationtest_MOC_CPPS testqgsapplication.cpp)
9
- #QT4_WRAP_CPP(applicationtest_MOC_SRCS ${applicationtest_MOC_CPPS})
10
- #ADD_CUSTOM_TARGET(applicationtestmoc ALL DEPENDS ${applicationtest_MOC_SRCS})
7
+ #QT4_GENERATE_MOC(${CMAKE_CURRENT_SOURCE_DIR}/testqgsapplication.cpp testqgsapplication.moc)
8
+ #SET_SOURCE_FILES_PROPERTIES(testqgsapplication.moc PROPERTIES GENERATED TRUE)
9
+ SET (applicationtest_MOC_CPPS testqgsapplication.cpp)
10
+ QT4_WRAP_CPP(applicationtest_MOC_SRCS ${applicationtest_MOC_CPPS} )
11
+ ADD_CUSTOM_TARGET (applicationtestmoc ALL DEPENDS ${applicationtest_MOC_SRCS} )
11
12
#QT4_GENERATE_MOC(${CMAKE_CURRENT_SOURCE_DIR}/testqgsapplication.cpp moc_testqgsapplication.cxx)
12
13
13
14
#####################################################
@@ -58,6 +59,7 @@ ENDIF (WIN32)
58
59
ADD_EXECUTABLE (applicationtest
59
60
${applicationtest_SRCS}
60
61
)
62
+ ADD_DEPENDENCIES (applicationtest applicationtestmoc)
61
63
TARGET_LINK_LIBRARIES (applicationtest
62
64
${QT_LIBRARIES}
63
65
qgis_core
Original file line number Diff line number Diff line change @@ -145,8 +145,5 @@ class TestQgsApplication: public QObject
145
145
};
146
146
147
147
QTEST_MAIN (TestQgsApplication)
148
- #include " testqgsapplication.moc.cpp"
149
-
150
-
151
-
148
+ #include " moc_testqgsapplication.cxx"
152
149
You can’t perform that action at this time.
0 commit comments