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/Linking.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/Linking.cmake | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/linden/indra/cmake/Linking.cmake b/linden/indra/cmake/Linking.cmake new file mode 100644 index 0000000..c9748e3 --- /dev/null +++ b/linden/indra/cmake/Linking.cmake | |||
@@ -0,0 +1,45 @@ | |||
1 | # -*- cmake -*- | ||
2 | |||
3 | if (NOT STANDALONE) | ||
4 | if (WINDOWS) | ||
5 | set(ARCH_PREBUILT_DIRS ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib) | ||
6 | set(ARCH_PREBUILT_DIRS_RELEASE ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib/release) | ||
7 | set(ARCH_PREBUILT_DIRS_DEBUG ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib/debug) | ||
8 | elseif (LINUX) | ||
9 | if (VIEWER) | ||
10 | set(ARCH_PREBUILT_DIRS | ||
11 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib_release_client) | ||
12 | set(ARCH_PREBUILT_DIRS_RELEASE ${ARCH_PREBUILT_DIRS}) | ||
13 | set(ARCH_PREBUILT_DIRS_DEBUG ${ARCH_PREBUILT_DIRS}) | ||
14 | else (VIEWER) | ||
15 | set(ARCH_PREBUILT_DIRS ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib_release) | ||
16 | endif (VIEWER) | ||
17 | elseif (DARWIN) | ||
18 | set(ARCH_PREBUILT_DIRS_RELEASE ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib_release) | ||
19 | set(ARCH_PREBUILT_DIRS_DEBUG ${ARCH_PREBUILT_DIRS_RELEASE}) | ||
20 | endif (WINDOWS) | ||
21 | endif (NOT STANDALONE) | ||
22 | |||
23 | link_directories(${ARCH_PREBUILT_DIRS}) | ||
24 | |||
25 | if (LINUX) | ||
26 | set(DL_LIBRARY dl) | ||
27 | set(PTHREAD_LIBRARY pthread) | ||
28 | else (LINUX) | ||
29 | set(DL_LIBRARY "") | ||
30 | set(PTHREAD_LIBRARY "") | ||
31 | endif (LINUX) | ||
32 | |||
33 | if (WINDOWS) | ||
34 | set(WINDOWS_LIBRARIES | ||
35 | ws2_32 | ||
36 | mswsock | ||
37 | psapi | ||
38 | winmm | ||
39 | netapi32 | ||
40 | ) | ||
41 | else (WINDOWS) | ||
42 | set(WINDOWS_LIBRARIES "") | ||
43 | endif (WINDOWS) | ||
44 | |||
45 | mark_as_advanced(DL_LIBRARY PTHREAD_LIBRARY WINDOWS_LIBRARIES) | ||