Newer
Older
Bryan O'Sullivan
committed
# -*- cmake -*-
Jennifer Leech
committed
include(Prebuilt)
Bryan O'Sullivan
committed
set(EXPAT_FIND_QUIETLY ON)
set(EXPAT_FIND_REQUIRED ON)
if (USESYSTEMLIBS)
Bryan O'Sullivan
committed
include(FindEXPAT)
else (USESYSTEMLIBS)
Jennifer Leech
committed
use_prebuilt_binary(expat)
Bryan O'Sullivan
committed
if (WINDOWS)
set(EXPAT_LIBRARIES libexpatMT)
set(EXPAT_COPY libexpatMT.dll)
Bryan O'Sullivan
committed
else (WINDOWS)
set(EXPAT_LIBRARIES expat)
if (DARWIN)
set(EXPAT_COPY libexpat.1.dylib libexpat.dylib)
else ()
set(EXPAT_COPY libexpat.so.1 libexpat.so)
endif ()
Bryan O'Sullivan
committed
endif (WINDOWS)
set(EXPAT_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include)
endif (USESYSTEMLIBS)