summaryrefslogtreecommitdiff
path: root/indra/cmake/EXPAT.cmake
blob: 85bb146a4aaf8b5f4d9705f9cc23c19840426540 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# -*- cmake -*-
include(Prebuilt)

include_guard()
create_target( ll::expat INTERFACE IMPORTED )

use_prebuilt_binary(expat)
if (WINDOWS)
    set_target_libraries( ll::expat libexpatMT )
    set(EXPAT_COPY libexpatMT.dll)
else (WINDOWS)
    set_target_libraries( ll::expat expat )
    if (DARWIN)
        set(EXPAT_COPY libexpat.1.dylib libexpat.dylib)
    else ()
        set(EXPAT_COPY libexpat.so.1 libexpat.so)
    endif ()
endif (WINDOWS)
set_target_include_dirs( ll::expat ${LIBS_PREBUILT_DIR}/include )