File: Proj4Mac.cmake

package info (click to toggle)
proj 4.9.3-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 58,684 kB
  • ctags: 3,263
  • sloc: sh: 885,752; ansic: 26,077; makefile: 235; java: 60; xml: 46
file content (23 lines) | stat: -rw-r--r-- 991 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
if(APPLE)
set(FRAMEWORKDIR "Library/Frameworks" CACHE PATH "the path to install framework")
  set(BUNDLEDIR "Applications/OSGEO" CACHE PATH "the path to install bundle")
  file(RELATIVE_PATH  BUNDLE_FRAME_REL_PATH_AAA "/${FRAMEWORKDIR}" "/aaa")
  string(LENGTH ${BUNDLE_FRAME_REL_PATH_AAA} AAA_LENGTH)
  math(EXPR RELATIVE_PATH_LENGTH "${AAA_LENGTH}-4")
  string(SUBSTRING ${BUNDLE_FRAME_REL_PATH_AAA} 0 ${RELATIVE_PATH_LENGTH} BUNDLE_FRAME_REL_PATH)
  set(PROJ_INSTALL_NAME_DIR "@executable_path/${BUNDLE_FRAME_REL_PATH}/${FRAMEWORKDIR}" )
else(APPLE)
  set(FRAMEWORKDIR "")
  set(BUNDLEDIR "")
  set(PROJ_INSTALL_NAME_DIR "")
endif(APPLE)

set(PROJ_RESOURCES "" )

if(APPLE)
   option(BUILD_FRAMEWORKS_AND_BUNDLE "if set to ON, build a library framework and application bundle, otherwise install classical UNIX bin/lib" OFF )
   set(DEFAULT_BINDIR ${BUNDLEDIR})
   boost_report_value(BUNDLEDIR)
   boost_report_value(PROJ_INSTALL_NAME_DIR)
   boost_report_value(FRAMEWORKDIR)
endif(APPLE)