diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index f1ce501..18e9290 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -716,3 +716,14 @@ IF (APPLE AND QGIS_MACAPP_INSTALL_DEV) INSTALL(TARGETS qgis_core FRAMEWORK DESTINATION ${QGIS_MACAPP_DEV_PREFIX}) INSTALL(CODE "EXECUTE_PROCESS(COMMAND install_name_tool -id \"${QGIS_MACAPP_DEV_PREFIX}/qgis_core.framework/Versions/${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}/qgis_core\" \"$ENV{DESTDIR}${QGIS_MACAPP_DEV_PREFIX}/qgis_core.framework/qgis_core\")") ENDIF (APPLE AND QGIS_MACAPP_INSTALL_DEV) + +############################################################# +# qgis_vsipreload library +#g++ -Wall -fPIC port/vsipreload.cpp -shared -o vsipreload.so -Iport -L. -L.libs -lgdal + +IF (CMAKE_SYSTEM_NAME STREQUAL Linux) + ADD_LIBRARY(qgis_vsipreload SHARED vsipreload.cpp) + TARGET_LINK_LIBRARIES(qgis_vsipreload ${GDAL_LIBRARY} ${CMAKE_DL_LIBS}) + INSTALL(TARGETS qgis_vsipreload LIBRARY DESTINATION ${QGIS_LIB_DIR}) +# ARCHIVE DESTINATION ${QGIS_LIB_DIR}) +ENDIF (CMAKE_SYSTEM_NAME STREQUAL Linux)