diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/cmake/UnixInstall.cmake | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-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.cmake | 31 |
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 @@ | |||
1 | if (NOT ${viewer_VERSION}) | ||
2 | MESSAGE(FATAL_ERROR "Viewer version not known!") | ||
3 | endif (NOT ${viewer_VERSION}) | ||
4 | |||
5 | set(INSTALL OFF CACHE BOOL | ||
6 | "Generate install target.") | ||
7 | |||
8 | if (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.") | ||
31 | endif (INSTALL) | ||