Skip to content
Permalink
Browse files
Adding support for generation of libqgis.so
  • Loading branch information
mbernasocchi committed Aug 11, 2011
1 parent 0105d25 commit 04f88ca694b0f5edce054ebb8d37704af0330491
Showing with 5 additions and 18 deletions.
  1. +5 −18 src/app/CMakeLists.txt
@@ -382,8 +382,11 @@ ENDIF (POSTGRES_FOUND)

#############
SET(QGIS_APP_LIB_NAME ${QGIS_APP_NAME}_app)
ADD_EXECUTABLE(${QGIS_APP_NAME} MACOSX_BUNDLE WIN32 ${QGIS_APP_SRCS} ${QGIS_APP_MOC_SRCS})
ADD_LIBRARY(${QGIS_APP_LIB_NAME} SHARED ${QGIS_APP_SRCS} ${QGIS_APP_MOC_SRCS} ${INDEX_SRC} ${QGIS_APP_HDRS} ${QGIS_APP_MOC_HDRS})
IF (ANDROID)
ADD_LIBRARY(${QGIS_APP_NAME} SHARED ${QGIS_APP_SRCS} ${QGIS_APP_MOC_SRCS} ${INDEX_SRC} ${QGIS_APP_HDRS} ${QGIS_APP_MOC_HDRS})
ELSE (ANDROID)
ADD_EXECUTABLE(${QGIS_APP_NAME} MACOSX_BUNDLE WIN32 ${QGIS_APP_SRCS} ${QGIS_APP_MOC_SRCS})
ENDIF (ANDROID)

TARGET_LINK_LIBRARIES(${QGIS_APP_NAME}
${QWT_LIBRARY}
@@ -397,19 +400,6 @@ TARGET_LINK_LIBRARIES(${QGIS_APP_NAME}
qgis_analysis
)

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


IF( WIN32 )
ADD_DEFINITIONS(-DQWT_DLL)
ENDIF( WIN32 )
@@ -441,9 +431,6 @@ ENDIF(MSVC)

INSTALL(TARGETS ${QGIS_APP_NAME}
BUNDLE DESTINATION ${QGIS_INSTALL_PREFIX}
RUNTIME DESTINATION ${QGIS_BIN_DIR})

INSTALL(TARGETS ${QGIS_APP_LIB_NAME}
RUNTIME DESTINATION ${QGIS_BIN_DIR}
LIBRARY DESTINATION ${QGIS_LIB_DIR}
ARCHIVE DESTINATION ${QGIS_LIB_DIR}

0 comments on commit 04f88ca

Please sign in to comment.