Skip to content
Permalink
Browse files

qgis_app lib link deps, fixes partialy #8575

  • Loading branch information
blazek committed Sep 5, 2013
1 parent 71fa6dc commit 0b1895463c17fb2f146101c8cb8cb842f64c7f57
Showing with 14 additions and 0 deletions.
  1. +14 −0 src/app/CMakeLists.txt
@@ -459,6 +459,20 @@ ENDIF (ANDROID)
# shared library used by tests - TODO: use it also for qgis executable?
ADD_LIBRARY(qgis_app STATIC ${QGIS_APP_SRCS} ${QGIS_APP_MOC_SRCS} ${QGIS_APP_HDRS} ${QGIS_APP_MOC_HDRS} ${IMAGE_RCC_SRCS})

TARGET_LINK_LIBRARIES(qgis_app
${QWT_LIBRARY}
${QT_QTSQL_LIBRARY}
${QT_QTUITOOLS_LIBRARY}
${QT_QTWEBKIT_LIBRARY}
#should only be needed for win
${QT_QTMAIN_LIBRARY}
${QWTPOLAR_LIBRARY}
${GDAL_LIBRARY}
qgis_core
qgis_gui
qgis_analysis
)

if(MSVC AND CMAKE_SIZEOF_VOID_P EQUAL 8)
SET_TARGET_PROPERTIES(qgis_app PROPERTIES STATIC_LIBRARY_FLAGS "/machine:x64")
ENDIF(MSVC AND CMAKE_SIZEOF_VOID_P EQUAL 8)

0 comments on commit 0b18954

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