Defined application services linkage for mac since we dont just globally 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
This commit is contained in:
timlinux 2008-03-26 03:03:44 +00:00
parent b43d6595af
commit a1008e1dd0
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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