summaryrefslogtreecommitdiff
path: root/indra/cmake/LLPathingLib.cmake
blob: 8e622d83db754b8bd8fb27a7d495ca5327a27c4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)