summaryrefslogtreecommitdiff
path: root/indra/cmake/Linking.cmake
diff options
context:
space:
mode:
authorBryan O'Sullivan <bos@lindenlab.com>2008-06-02 21:14:31 +0000
committerBryan O'Sullivan <bos@lindenlab.com>2008-06-02 21:14:31 +0000
commit9db949eec327df4173fde3de934a87bedb0db13c (patch)
treeaeffa0f0e68b1d2ceb74d460cbbd22652c9cd159 /indra/cmake/Linking.cmake
parent419e13d0acaabf5e1e02e9b64a07648bce822b2f (diff)
svn merge -r88066:88786 svn+ssh://svn.lindenlab.com/svn/linden/branches/cmake-9-merge
dataserver-is-deprecated for-fucks-sake-whats-with-these-commit-markers
Diffstat (limited to 'indra/cmake/Linking.cmake')
-rw-r--r--indra/cmake/Linking.cmake43
1 files changed, 43 insertions, 0 deletions
diff --git a/indra/cmake/Linking.cmake b/indra/cmake/Linking.cmake
new file mode 100644
index 0000000000..3146016b9a
--- /dev/null
+++ b/indra/cmake/Linking.cmake
@@ -0,0 +1,43 @@
+# -*- cmake -*-
+
+if (NOT STANDALONE)
+ if (WINDOWS)
+ set(ARCH_PREBUILT_DIRS ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib)
+ set(ARCH_PREBUILT_DIRS_RELEASE ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib/release)
+ set(ARCH_PREBUILT_DIRS_DEBUG ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib/debug)
+ elseif (LINUX)
+ if (VIEWER)
+ set(ARCH_PREBUILT_DIRS
+ ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib_release_client)
+ else (VIEWER)
+ set(ARCH_PREBUILT_DIRS ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib_release)
+ endif (VIEWER)
+ elseif (DARWIN)
+ set(ARCH_PREBUILT_DIRS_RELEASE ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib_release)
+ set(ARCH_PREBUILT_DIRS_DEBUG ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib_debug)
+ endif (WINDOWS)
+endif (NOT STANDALONE)
+
+link_directories(${ARCH_PREBUILT_DIRS})
+
+if (LINUX)
+ set(DL_LIBRARY dl)
+ set(PTHREAD_LIBRARY pthread)
+else (LINUX)
+ set(DL_LIBRARY "")
+ set(PTHREAD_LIBRARY "")
+endif (LINUX)
+
+if (WINDOWS)
+ set(WINDOWS_LIBRARIES
+ ws2_32
+ mswsock
+ psapi
+ winmm
+ netapi32
+ )
+else (WINDOWS)
+ set(WINDOWS_LIBRARIES "")
+endif (WINDOWS)
+
+mark_as_advanced(DL_LIBRARY PTHREAD_LIBRARY WINDOWS_LIBRARIES)