|
|
@ -47,32 +47,33 @@ set(EXPAT_BUILD_TESTS OFF CACHE BOOL "")
|
|
|
|
set(EXPAT_BUILD_TOOLS OFF CACHE BOOL "")
|
|
|
|
set(EXPAT_BUILD_TOOLS OFF CACHE BOOL "")
|
|
|
|
set(EXPAT_SHARED_LIBS OFF CACHE BOOL "")
|
|
|
|
set(EXPAT_SHARED_LIBS OFF CACHE BOOL "")
|
|
|
|
set(EXPAT_BUILD_DOCS OFF CACHE BOOL "")
|
|
|
|
set(EXPAT_BUILD_DOCS OFF CACHE BOOL "")
|
|
|
|
|
|
|
|
set(EXPAT_ENABLE_INSTALL OFF CACHE BOOL "")
|
|
|
|
add_subdirectory(libexpat/expat)
|
|
|
|
add_subdirectory(libexpat/expat)
|
|
|
|
|
|
|
|
|
|
|
|
set(LIBZIP_INSTALL_DIR ${CMAKE_CURRENT_BINARY_DIR}/libzip)
|
|
|
|
set(LIBZIP_BUILD_DOC OFF CACHE BOOL "")
|
|
|
|
set(LIBZIP_LIB ${LIBZIP_INSTALL_DIR}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}zip${CMAKE_STATIC_LIBRARY_SUFFIX})
|
|
|
|
set(LIBZIP_BUILD_EXAMPLES OFF CACHE BOOL "")
|
|
|
|
set(LIBZIP_LIB ${LIBZIP_LIB} PARENT_SCOPE)
|
|
|
|
set(LIBZIP_BUILD_REGRESS OFF CACHE BOOL "")
|
|
|
|
ExternalProject_Add(libzip_project
|
|
|
|
set(LIBZIP_BUILD_SHARED_LIBS OFF CACHE BOOL "")
|
|
|
|
PREFIX libzip
|
|
|
|
set(LIBZIP_BUILD_TOOLS OFF CACHE BOOL "")
|
|
|
|
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/libzip
|
|
|
|
set(LIBZIP_ENABLE_BZIP2 OFF CACHE BOOL "")
|
|
|
|
INSTALL_DIR ${LIBZIP_INSTALL_DIR}
|
|
|
|
set(LIBZIP_ENABLE_COMMONCRYPTO OFF CACHE BOOL "")
|
|
|
|
BUILD_BYPRODUCTS ${LIBZIP_LIB}
|
|
|
|
set(LIBZIP_ENABLE_GNUTLS OFF CACHE BOOL "")
|
|
|
|
CMAKE_GENERATOR "${CMAKE_GENERATOR}"
|
|
|
|
set(LIBZIP_ENABLE_LZMA OFF CACHE BOOL "")
|
|
|
|
CMAKE_GENERATOR_TOOLSET "${CMAKE_GENERATOR_TOOLSET}"
|
|
|
|
set(LIBZIP_ENABLE_MBEDTLS OFF CACHE BOOL "")
|
|
|
|
CMAKE_ARGS ${CL_ARGS} -DCMAKE_INSTALL_PREFIX=${LIBZIP_INSTALL_DIR} -DCMAKE_BUILD_TYPE=Release -DBUILD_DOC=OFF -DBUILD_EXAMPLES=OFF -DBUILD_REGRESS=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_TOOLS=OFF -DENABLE_BZIP2=OFF -DENABLE_COMMONCRYPTO=OFF -DENABLE_GNUTLS=OFF -DENABLE_LZMA=OFF -DENABLE_MBEDTLS=OFF -DENABLE_OPENSSL=OFF -DENABLE_WINDOWS_CRYPTO=OFF -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_POSITION_INDEPENDENT_CODE=ON
|
|
|
|
set(LIBZIP_ENABLE_OPENSSL OFF CACHE BOOL "")
|
|
|
|
)
|
|
|
|
set(LIBZIP_ENABLE_WINDOWS_CRYPTO OFF CACHE BOOL "")
|
|
|
|
|
|
|
|
set(LIBZIP_DO_INSTALL OFF CACHE BOOL "")
|
|
|
|
|
|
|
|
add_subdirectory(libzip)
|
|
|
|
|
|
|
|
|
|
|
|
set(XLSXIO_INSTALL_DIR ${CMAKE_CURRENT_BINARY_DIR}/xlsxio)
|
|
|
|
set(XLSXIO_USE_DFHACK_LIBS ON CACHE BOOL "")
|
|
|
|
set(XLSXIO_INSTALL_DIR ${XLSXIO_INSTALL_DIR} PARENT_SCOPE)
|
|
|
|
set(XLSXIO_BUILD_STATIC ON CACHE BOOL "")
|
|
|
|
set(XLSXIO_LIB ${XLSXIO_INSTALL_DIR}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}xlsxio_read${CMAKE_STATIC_LIBRARY_SUFFIX})
|
|
|
|
set(XLSXIO_BUILD_SHARED OFF CACHE BOOL "")
|
|
|
|
set(XLSXIO_LIB ${XLSXIO_LIB} PARENT_SCOPE)
|
|
|
|
set(XLSXIO_BUILD_DOCUMENTATION OFF CACHE BOOL "")
|
|
|
|
ExternalProject_Add(xlsxio_project
|
|
|
|
set(XLSXIO_BUILD_EXAMPLES OFF CACHE BOOL "")
|
|
|
|
PREFIX xlsxio
|
|
|
|
set(XLSXIO_BUILD_TOOLS OFF CACHE BOOL "")
|
|
|
|
DEPENDS libzip_project
|
|
|
|
set(XLSXIO_WITH_LIBZIP ON CACHE BOOL "")
|
|
|
|
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/xlsxio
|
|
|
|
set(XLSXIO_ZLIB_DIR "${ZLIB_DIR}" CACHE PATH "")
|
|
|
|
INSTALL_DIR ${XLSXIO_INSTALL_DIR}
|
|
|
|
set(XLSXIO_LIBZIP_DIR "${CMAKE_CURRENT_BINARY_DIR}/libzip" CACHE PATH "")
|
|
|
|
BUILD_BYPRODUCTS ${XLSXIO_LIB}
|
|
|
|
set(XLSXIO_EXPAT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/libexpat" CACHE PATH "")
|
|
|
|
CMAKE_GENERATOR "${CMAKE_GENERATOR}"
|
|
|
|
set(XLSXIO_ENABLE_INSTALL OFF CACHE BOOL "")
|
|
|
|
CMAKE_GENERATOR_TOOLSET "${CMAKE_GENERATOR_TOOLSET}"
|
|
|
|
add_subdirectory(xlsxio)
|
|
|
|
CMAKE_ARGS ${CL_ARGS} -DCMAKE_INSTALL_PREFIX=${XLSXIO_INSTALL_DIR} -DCMAKE_BUILD_TYPE=Release -DBUILD_STATIC=ON -DBUILD_SHARED=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBUILD_TOOLS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_DOCUMENTATION=OFF -DWITH_LIBZIP=ON -DZLIB_DIR=${ZLIB_DIR} -DLIBZIP_DIR=${LIBZIP_INSTALL_DIR} -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_C_FLAGS=${XLSXIO_C_FLAGS}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|