aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake/UnixInstall.cmake
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/cmake/UnixInstall.cmake
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to '')
-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)