PageRenderTime 22ms CodeModel.GetById 19ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1
  1. if (NOT ${viewer_VERSION})
  2. MESSAGE(FATAL_ERROR "Viewer version not known!")
  3. endif (NOT ${viewer_VERSION})
  4. set(INSTALL OFF CACHE BOOL
  5. "Generate install target.")
  6. if (INSTALL)
  7. set(INSTALL_PREFIX /usr CACHE PATH
  8. "Top-level installation directory.")
  9. if (EXISTS /lib64)
  10. set(_LIB lib64)
  11. else (EXISTS /lib64)
  12. set(_LIB lib)
  13. endif (EXISTS /lib64)
  14. set(INSTALL_LIBRARY_DIR ${INSTALL_PREFIX}/${_LIB} CACHE PATH
  15. "Installation directory for read-only shared files.")
  16. set(INSTALL_SHARE_DIR ${INSTALL_PREFIX}/share CACHE PATH
  17. "Installation directory for read-only shared files.")
  18. set(APP_BINARY_DIR ${INSTALL_LIBRARY_DIR}/secondlife-${viewer_VERSION}
  19. CACHE PATH
  20. "Installation directory for binaries.")
  21. set(APP_SHARE_DIR ${INSTALL_SHARE_DIR}/secondlife-${viewer_VERSION}
  22. CACHE PATH
  23. "Installation directory for read-only data files.")
  24. endif (INSTALL)