aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake/Linking.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/cmake/Linking.cmake')
-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)