vsipreload-patch.txt

Etienne Tourigny, 2014-05-07 07:09 PM

Download (1.08 KB)

 
1
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
2
index f1ce501..18e9290 100644
3
--- a/src/core/CMakeLists.txt
4
+++ b/src/core/CMakeLists.txt
5
@@ -716,3 +716,14 @@ IF (APPLE AND QGIS_MACAPP_INSTALL_DEV)
6
   INSTALL(TARGETS qgis_core FRAMEWORK DESTINATION ${QGIS_MACAPP_DEV_PREFIX})
7
   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\")")
8
 ENDIF (APPLE AND QGIS_MACAPP_INSTALL_DEV)
9
+
10
+#############################################################
11
+# qgis_vsipreload library
12
+#g++ -Wall -fPIC port/vsipreload.cpp -shared -o vsipreload.so -Iport -L. -L.libs -lgdal 
13
+
14
+IF (CMAKE_SYSTEM_NAME STREQUAL Linux)
15
+  ADD_LIBRARY(qgis_vsipreload SHARED vsipreload.cpp)
16
+  TARGET_LINK_LIBRARIES(qgis_vsipreload ${GDAL_LIBRARY} ${CMAKE_DL_LIBS})
17
+  INSTALL(TARGETS qgis_vsipreload LIBRARY DESTINATION ${QGIS_LIB_DIR})
18
+#  ARCHIVE DESTINATION ${QGIS_LIB_DIR})
19
+ENDIF (CMAKE_SYSTEM_NAME STREQUAL Linux)