"Fossies" - the Fresh Open Source Software Archive

Member "QGIS-final-3_10_1/mac/cmake/2lib.cmake.in" (6 Dec 2019, 2703 Bytes) of package /linux/misc/QGIS-final-3_10_1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # 2lib - bundle shared libraries (but not standard frameworks)
    2 # ! cmakecache vars not available to external scripts
    3 #   so we configure it first to do substitutions
    4 #   make sure to use @varname@
    5 
    6 # for now, just libs not available as frameworks
    7 #   libpq
    8 #   libfcgi (non-system)
    9 
   10 # kill boolean warnings
   11 CMAKE_POLICY (SET CMP0012 NEW)
   12 
   13 INCLUDE ("@CMAKE_BINARY_DIR@/mac/0vars.cmake")
   14 INCLUDE ("@CMAKE_SOURCE_DIR@/cmake/MacBundleMacros.cmake")
   15 
   16 # Postgres
   17 
   18 IF ("@POSTGRES_LIBRARY@" MATCHES ".*libpq.dylib")
   19     MESSAGE (STATUS "Copying libpq and updating library paths...")
   20     EXECUTE_PROCESS (COMMAND ditto ${QARCHS} "@POSTGRES_LIBRARY@" "${QLIBDIR}/libpq.dylib")
   21     GET_INSTALL_NAME ("@POSTGRES_LIBRARY@" "libpq" PQLIB)
   22     UPDATEQGISPATHS (${PQLIB} libpq.dylib)
   23     # may have been built with libintl
   24     GET_INSTALL_NAME ("@POSTGRES_LIBRARY@" "libintl" INTLLIB)
   25     IF (INTLLIB)
   26         EXECUTE_PROCESS (COMMAND ditto ${QARCHS} "${INTLLIB}" "${QLIBDIR}/libintl.dylib")
   27         SET (LIB_CHG_TO "${ATEXECUTABLE}/@QGIS_LIB_SUBDIR@/libintl.dylib")
   28         IF (@OSX_HAVE_LOADERPATH@)
   29             SET (LIB_CHG_TO "${ATLOADER}/libintl.dylib")
   30         ENDIF (@OSX_HAVE_LOADERPATH@)
   31         INSTALLNAMETOOL_CHANGE ("${INTLLIB}" "${LIB_CHG_TO}" "${QLIBDIR}/libpq.dylib")
   32     ENDIF (INTLLIB)
   33     IF (EXISTS "${QPLUGDIR}/../sqldrivers/libqsqlpsql.dylib")
   34         FILE (RELATIVE_PATH _relpath "${QPLUGDIR}/../sqldrivers" "${QLIBDIR}/libpq.dylib")
   35         INSTALLNAMETOOL_CHANGE ("${PQLIB}" "${ATLOADER}/${_relpath}" "${QPLUGDIR}/../sqldrivers/libqsqlpsql.dylib")
   36     ENDIF ()
   37 ENDIF ()
   38 
   39 # libspatialindex
   40 
   41 IF ("@SPATIALINDEX_LIBRARY@" MATCHES ".*libspatialindex.dylib")
   42     MESSAGE (STATUS "Copying libspatialindex and updating library paths...")
   43     EXECUTE_PROCESS (COMMAND ditto ${QARCHS} "@SPATIALINDEX_LIBRARY@" "${QLIBDIR}/libspatialindex.dylib")
   44     GET_INSTALL_NAME ("@SPATIALINDEX_LIBRARY@" "libspatialindex" SPILIB)
   45     UPDATEQGISPATHS (${SPILIB} libspatialindex.dylib)
   46     IF (@WITH_QSPATIALITE@ AND EXISTS "${QPLUGDIR}/../sqldrivers/libqsqlspatialite.dylib")
   47         FILE (RELATIVE_PATH _relpath "${QPLUGDIR}/../sqldrivers" "${QLIBDIR}/libspatialindex.dylib")
   48         INSTALLNAMETOOL_CHANGE ("${SPILIB}" "${ATLOADER}/${_relpath}" "${QPLUGDIR}/../sqldrivers/libqsqlspatialite.dylib")
   49     ENDIF ()
   50 ENDIF ()
   51 
   52 # libfcgi (non-system)
   53 
   54 IF ("@FCGI_LIBRARY@" MATCHES ".*libfcgi.dylib" AND NOT "@FCGI_LIBRARY@" MATCHES "/usr/lib/.*")
   55     MESSAGE (STATUS "Copying libfcgi and updating library paths...")
   56     EXECUTE_PROCESS (COMMAND ditto ${QARCHS} "@FCGI_LIBRARY@" "${QLIBDIR}/libfcgi.dylib")
   57     GET_INSTALL_NAME ("@FCGI_LIBRARY@" "libfcgi" FCGILIB)
   58     UPDATEQGISPATHS (${FCGILIB} libfcgi.dylib)
   59 ENDIF ()