summaryrefslogtreecommitdiff
path: root/indra/cmake/LLPathingLib.cmake
diff options
context:
space:
mode:
authorTodd Stinson <stinson@lindenlab.com>2011-12-12 10:02:12 -0800
committerTodd Stinson <stinson@lindenlab.com>2011-12-12 10:02:12 -0800
commitec52f62228ada7cbf482b6b29d069faa0cebc670 (patch)
treeadfd8f867f38e8ad90befc0ce7c2f2c48bce3b3e /indra/cmake/LLPathingLib.cmake
parentd3299410427015ef59683ce4ea33d807a936295c (diff)
Adding the ability to pull in the pathing library as a prebuilt dependency.
Diffstat (limited to 'indra/cmake/LLPathingLib.cmake')
-rw-r--r--indra/cmake/LLPathingLib.cmake16
1 files changed, 16 insertions, 0 deletions
diff --git a/indra/cmake/LLPathingLib.cmake b/indra/cmake/LLPathingLib.cmake
new file mode 100644
index 0000000000..b92190ad0a
--- /dev/null
+++ b/indra/cmake/LLPathingLib.cmake
@@ -0,0 +1,16 @@
+# -*- cmake -*-
+include(Prebuilt)
+
+use_prebuilt_binary(llpathinglib)
+set(LLPATHING_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/libraries/include)
+if (CMAKE_BUILD_TYPE MATCHES "Debug")
+ set(LLPATHING_LIBRARY_PATH ${LIBS_PREBUILT_DIR}/lib/debug)
+else (CMAKE_BUILD_TYPE MATCHES "Debug")
+ set(LLPATHING_LIBRARY_PATH ${LIBS_PREBUILT_DIR}/lib/release)
+endif (CMAKE_BUILD_TYPE MATCHES "Debug")
+
+find_library(LL_PATHING_LIB llpathinglib PATHS ${LLPATHING_LIBRARY_PATH})
+
+set(LLPATHING_LIBRARIES
+ ${LL_PATHING_LIB}
+)