Newer
Older
Bryan O'Sullivan
committed
# -*- cmake -*-
Jennifer Leech
committed
include(Prebuilt)
Bryan O'Sullivan
committed
if( TARGET expat::expat )
return()
endif()
create_target( expat::expat INTERFACE IMPORTED )
Bryan O'Sullivan
committed
if (USESYSTEMLIBS)
Bryan O'Sullivan
committed
include(FindEXPAT)
else (USESYSTEMLIBS)
Jennifer Leech
committed
use_prebuilt_binary(expat)
Bryan O'Sullivan
committed
if (WINDOWS)
set_target_libraries( expat::expat libexpatMT )
set(EXPAT_COPY libexpatMT.dll)
Bryan O'Sullivan
committed
else (WINDOWS)
set_target_libraries( expat::expat 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_target_include_dirs( expat::expat ${LIBS_PREBUILT_DIR}/include )
endif (USESYSTEMLIBS)