PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/indra/cmake/UnixInstall.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 31 lines | 24 code | 7 blank | 0 comment | 8 complexity | af0aea2865f7f636ca4387ad1e20e9fc MD5 | raw file
 1if (NOT ${viewer_VERSION})
 2  MESSAGE(FATAL_ERROR "Viewer version not known!")
 3endif (NOT ${viewer_VERSION})
 4
 5set(INSTALL OFF CACHE BOOL
 6    "Generate install target.")
 7
 8if (INSTALL)
 9  set(INSTALL_PREFIX /usr CACHE PATH
10      "Top-level installation directory.")
11
12  if (EXISTS /lib64)
13    set(_LIB lib64)
14  else (EXISTS /lib64)
15    set(_LIB lib)
16  endif (EXISTS /lib64)
17
18  set(INSTALL_LIBRARY_DIR ${INSTALL_PREFIX}/${_LIB} CACHE PATH
19      "Installation directory for read-only shared files.")
20
21  set(INSTALL_SHARE_DIR ${INSTALL_PREFIX}/share CACHE PATH
22      "Installation directory for read-only shared files.")
23
24  set(APP_BINARY_DIR ${INSTALL_LIBRARY_DIR}/secondlife-${viewer_VERSION}
25      CACHE PATH
26      "Installation directory for binaries.")
27
28  set(APP_SHARE_DIR ${INSTALL_SHARE_DIR}/secondlife-${viewer_VERSION}
29      CACHE PATH
30      "Installation directory for read-only data files.")
31endif (INSTALL)