Skip to content

Commit

Permalink
Fix build with MODELTEST enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 6, 2018
1 parent 2fc0b5b commit cbd3042
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/app/CMakeLists.txt
Expand Up @@ -721,6 +721,10 @@ TARGET_LINK_LIBRARIES(qgis_app
libdxfrw
)

IF(ENABLE_MODELTEST)
TARGET_LINK_LIBRARIES(qgis_app ${Qt5Test_LIBRARIES})
ENDIF(ENABLE_MODELTEST)

IF (WITH_3D)
TARGET_LINK_LIBRARIES(qgis_app
qgis_3d
Expand Down
2 changes: 1 addition & 1 deletion src/core/CMakeLists.txt
Expand Up @@ -1213,7 +1213,7 @@ GENERATE_EXPORT_HEADER(
SET(QGIS_CORE_HDRS ${QGIS_CORE_HDRS} ${CMAKE_CURRENT_BINARY_DIR}/qgis_core.h)

IF(ENABLE_MODELTEST)
TARGET_LINK_LIBRARIES(qgis_core ${QT_QTTEST_LIBRARY})
TARGET_LINK_LIBRARIES(qgis_core ${Qt5Test_LIBRARIES})
ENDIF(ENABLE_MODELTEST)

IF(NOT APPLE)
Expand Down
4 changes: 4 additions & 0 deletions src/gui/CMakeLists.txt
Expand Up @@ -973,6 +973,10 @@ TARGET_LINK_LIBRARIES(qgis_gui
${QSCINTILLA_LIBRARY}
)

IF(ENABLE_MODELTEST)
TARGET_LINK_LIBRARIES(qgis_gui ${Qt5Test_LIBRARIES})
ENDIF(ENABLE_MODELTEST)

IF(WIN32)
ADD_DEFINITIONS(-DQWT_DLL)
ADD_DEFINITIONS(-DQSCINTILLA_DLL)
Expand Down

0 comments on commit cbd3042

Please sign in to comment.