summaryrefslogtreecommitdiff
path: root/indra/cmake/EXPAT.cmake
blob: 4947c40e02058de9dbf2ae6b15d4589a4cc86f27 (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)
    target_link_libraries( ll::expat  INTERFACE libexpatMT )
    set(EXPAT_COPY libexpatMT.dll)
else (WINDOWS)
    target_link_libraries( ll::expat INTERFACE expat )
    if (DARWIN)
        set(EXPAT_COPY libexpat.1.dylib libexpat.dylib)
    else ()
        set(EXPAT_COPY libexpat.so.1 libexpat.so)
    endif ()
endif (WINDOWS)
target_include_directories( ll::expat SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include )