summaryrefslogtreecommitdiff
path: root/indra/cmake/UnixInstall.cmake
diff options
context:
space:
mode:
authorBryan O'Sullivan <bos@lindenlab.com>2008-06-02 21:14:31 +0000
committerBryan O'Sullivan <bos@lindenlab.com>2008-06-02 21:14:31 +0000
commit9db949eec327df4173fde3de934a87bedb0db13c (patch)
treeaeffa0f0e68b1d2ceb74d460cbbd22652c9cd159 /indra/cmake/UnixInstall.cmake
parent419e13d0acaabf5e1e02e9b64a07648bce822b2f (diff)
svn merge -r88066:88786 svn+ssh://svn.lindenlab.com/svn/linden/branches/cmake-9-merge
dataserver-is-deprecated for-fucks-sake-whats-with-these-commit-markers
Diffstat (limited to 'indra/cmake/UnixInstall.cmake')
-rw-r--r--indra/cmake/UnixInstall.cmake31
1 files changed, 31 insertions, 0 deletions
diff --git a/indra/cmake/UnixInstall.cmake b/indra/cmake/UnixInstall.cmake
new file mode 100644
index 0000000000..139be0a008
--- /dev/null
+++ b/indra/cmake/UnixInstall.cmake
@@ -0,0 +1,31 @@
+if (NOT ${viewer_VERSION})
+ MESSAGE(FATAL_ERROR "Viewer version not known!")
+endif (NOT ${viewer_VERSION})
+
+set(INSTALL OFF CACHE BOOL
+ "Generate install target.")
+
+if (INSTALL)
+ set(INSTALL_PREFIX /usr CACHE PATH
+ "Top-level installation directory.")
+
+ if (EXISTS /lib64)
+ set(_LIB lib64)
+ else (EXISTS /lib64)
+ set(_LIB lib)
+ endif (EXISTS /lib64)
+
+ set(INSTALL_LIBRARY_DIR ${INSTALL_PREFIX}/${_LIB} CACHE PATH
+ "Installation directory for read-only shared files.")
+
+ set(INSTALL_SHARE_DIR ${INSTALL_PREFIX}/share CACHE PATH
+ "Installation directory for read-only shared files.")
+
+ set(APP_BINARY_DIR ${INSTALL_LIBRARY_DIR}/secondlife-${viewer_VERSION}
+ CACHE PATH
+ "Installation directory for binaries.")
+
+ set(APP_SHARE_DIR ${INSTALL_SHARE_DIR}/secondlife-${viewer_VERSION}
+ CACHE PATH
+ "Installation directory for read-only data files.")
+endif (INSTALL)