aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake/Linking.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/Linking.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/Linking.cmake45
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
3if (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)
21endif (NOT STANDALONE)
22
23link_directories(${ARCH_PREBUILT_DIRS})
24
25if (LINUX)
26 set(DL_LIBRARY dl)
27 set(PTHREAD_LIBRARY pthread)
28else (LINUX)
29 set(DL_LIBRARY "")
30 set(PTHREAD_LIBRARY "")
31endif (LINUX)
32
33if (WINDOWS)
34 set(WINDOWS_LIBRARIES
35 ws2_32
36 mswsock
37 psapi
38 winmm
39 netapi32
40 )
41else (WINDOWS)
42 set(WINDOWS_LIBRARIES "")
43endif (WINDOWS)
44
45mark_as_advanced(DL_LIBRARY PTHREAD_LIBRARY WINDOWS_LIBRARIES)