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)

Rye Mutt
committed
elseif(DARWIN)
find_package(EXPAT REQUIRED)
else (USESYSTEMLIBS)
Jennifer Leech
committed
use_prebuilt_binary(expat)
Bryan O'Sullivan
committed
if (WINDOWS)
set(EXPAT_LIBRARIES
debug libexpatd.lib
optimized libexpat.lib)
set(EXPAT_COPY libexpat.dll)

Rye Mutt
committed
else ()
Bryan O'Sullivan
committed
set(EXPAT_LIBRARIES expat)

Rye Mutt
committed
set(EXPAT_COPY libexpat.so.1 libexpat.so)
endif ()
Bryan O'Sullivan
committed
set(EXPAT_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include)
endif (USESYSTEMLIBS)