Skip to content
Permalink
Browse files

Fix build with MODELTEST enabled

  • Loading branch information
nyalldawson committed Feb 6, 2018
1 parent 2fc0b5b commit cbd3042b5e5f321c9c7b5512c5d7a70c50d9f5d9
Showing with 9 additions and 1 deletion.
  1. +4 −0 src/app/CMakeLists.txt
  2. +1 −1 src/core/CMakeLists.txt
  3. +4 −0 src/gui/CMakeLists.txt
@@ -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
@@ -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)
@@ -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)

0 comments on commit cbd3042

Please sign in to comment.
You can’t perform that action at this time.