aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake/UnixInstall.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/cmake/UnixInstall.cmake')
-rw-r--r--linden/indra/cmake/UnixInstall.cmake31
1 files changed, 31 insertions, 0 deletions
diff --git a/linden/indra/cmake/UnixInstall.cmake b/linden/indra/cmake/UnixInstall.cmake
new file mode 100644
index 0000000..139be0a
--- /dev/null
+++ b/linden/indra/cmake/UnixInstall.cmake
@@ -0,0 +1,31 @@
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)