summaryrefslogtreecommitdiff
path: root/indra/cmake/LLPathingLib.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'indra/cmake/LLPathingLib.cmake')
-rw-r--r--indra/cmake/LLPathingLib.cmake23
1 files changed, 23 insertions, 0 deletions
diff --git a/indra/cmake/LLPathingLib.cmake b/indra/cmake/LLPathingLib.cmake
new file mode 100644
index 0000000000..8e622d83db
--- /dev/null
+++ b/indra/cmake/LLPathingLib.cmake
@@ -0,0 +1,23 @@
+# -*- cmake -*-
+include(Prebuilt)
+
+use_prebuilt_binary(llpathinglib)
+set(LLPATHING_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/libraries/include)
+
+
+set(LLPATHING_DEBUG_LIBRARY_PATH ${LIBS_PREBUILT_DIR}/lib/debug)
+set(LLPATHING_RELEASE_LIBRARY_PATH ${LIBS_PREBUILT_DIR}/lib/release)
+
+find_library(LL_PATHING_DEBUG_LIB llpathinglib PATHS ${LLPATHING_DEBUG_LIBRARY_PATH})
+find_library(LL_PATHING_RELEASE_LIB llpathinglib PATHS ${LLPATHING_RELEASE_LIBRARY_PATH})
+
+set(LLPATHING_LIBRARIES
+
+ debug ${LL_PATHING_DEBUG_LIB}
+ optimized ${LL_PATHING_RELEASE_LIB}
+)
+
+if (LINUX)
+ list(INSERT LLPATHING_LIBRARIES 0 -Wl,--start-group)
+ list(APPEND LLPATHING_LIBRARIES -Wl,--end-group)
+endif (LINUX)