Skip to content
Permalink
Browse files
Defined application services linkage for mac since we dont just globa…
…lly link to all qgis libs now (which used to give us ap services libs in the process). Applies to OS X only.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8279 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Mar 26, 2008
1 parent b43d659 commit a1008e1dd05f5c8e860615772a20b216cdb4bfdd
Showing with 6 additions and 0 deletions.
  1. +2 −0 CMakeLists.txt
  2. +4 −0 src/app/CMakeLists.txt
@@ -196,6 +196,8 @@ ELSE (WIN32)
SET (CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}/${PROJECT_NAME}.app/Contents/MacOS)
# path for library references
SET (CMAKE_INSTALL_NAME_DIR @executable_path/lib)
#this will define ${APP_SERVICES_LIBRARY}
FIND_LIBRARY(APP_SERVICES_LIBRARY ApplicationServices )
ENDIF (APPLE)

# common for MAC and UNIX
@@ -246,6 +246,10 @@ IF (MSVC)
TARGET_LINK_LIBRARIES(qgis qtmain)
ENDIF (MSVC)

IF (APPLE)
TARGET_LINK_LIBRARIES(qgis APP_SERVICES_LIBRARY )
ENDIF (APPLE)

SET_TARGET_PROPERTIES(qgis PROPERTIES
INSTALL_RPATH ${QGIS_LIB_DIR}
INSTALL_RPATH_USE_LINK_PATH true

0 comments on commit a1008e1

Please sign in to comment.