Skip to content

Commit cbd3042

Browse files
committedFeb 6, 2018
Fix build with MODELTEST enabled
1 parent 2fc0b5b commit cbd3042

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed
 

‎src/app/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,10 @@ TARGET_LINK_LIBRARIES(qgis_app
721721
libdxfrw
722722
)
723723

724+
IF(ENABLE_MODELTEST)
725+
TARGET_LINK_LIBRARIES(qgis_app ${Qt5Test_LIBRARIES})
726+
ENDIF(ENABLE_MODELTEST)
727+
724728
IF (WITH_3D)
725729
TARGET_LINK_LIBRARIES(qgis_app
726730
qgis_3d

‎src/core/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,7 @@ GENERATE_EXPORT_HEADER(
12131213
SET(QGIS_CORE_HDRS ${QGIS_CORE_HDRS} ${CMAKE_CURRENT_BINARY_DIR}/qgis_core.h)
12141214

12151215
IF(ENABLE_MODELTEST)
1216-
TARGET_LINK_LIBRARIES(qgis_core ${QT_QTTEST_LIBRARY})
1216+
TARGET_LINK_LIBRARIES(qgis_core ${Qt5Test_LIBRARIES})
12171217
ENDIF(ENABLE_MODELTEST)
12181218

12191219
IF(NOT APPLE)

‎src/gui/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -973,6 +973,10 @@ TARGET_LINK_LIBRARIES(qgis_gui
973973
${QSCINTILLA_LIBRARY}
974974
)
975975

976+
IF(ENABLE_MODELTEST)
977+
TARGET_LINK_LIBRARIES(qgis_gui ${Qt5Test_LIBRARIES})
978+
ENDIF(ENABLE_MODELTEST)
979+
976980
IF(WIN32)
977981
ADD_DEFINITIONS(-DQWT_DLL)
978982
ADD_DEFINITIONS(-DQSCINTILLA_DLL)

0 commit comments

Comments
 (0)
Please sign in to comment.