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 )
106106SET ( QT_USE_QTNETWORK TRUE )
107107SET ( QT_USE_QTSVG TRUE )
108108IF (ENABLE_TESTS)
109- SET ( QT_USE_QTTESTS TRUE )
109+ SET ( QT_USE_QTTEST TRUE )
110110 ENABLE_TESTING ()
111111ENDIF (ENABLE_TESTS)
112112# TODO: should not be needed, report it to CMake devs
Original file line number Diff line number Diff line change 44# application test
55
66SET (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} )
1112#QT4_GENERATE_MOC(${CMAKE_CURRENT_SOURCE_DIR}/testqgsapplication.cpp moc_testqgsapplication.cxx)
1213
1314#####################################################
@@ -58,6 +59,7 @@ ENDIF (WIN32)
5859ADD_EXECUTABLE (applicationtest
5960 ${applicationtest_SRCS}
6061 )
62+ ADD_DEPENDENCIES (applicationtest applicationtestmoc)
6163TARGET_LINK_LIBRARIES (applicationtest
6264 ${QT_LIBRARIES}
6365 qgis_core
Original file line number Diff line number Diff line change @@ -145,8 +145,5 @@ class TestQgsApplication: public QObject
145145};
146146
147147QTEST_MAIN (TestQgsApplication)
148- #include " testqgsapplication.moc.cpp"
149-
150-
151-
148+ #include " moc_testqgsapplication.cxx"
152149
You can’t perform that action at this time.
0 commit comments