|
|
@ -72,10 +72,9 @@ set(XLSXIO_LIB ${XLSXIO_INSTALL_DIR}/lib/${LIB_PREFIX}xlsxio_read${LIB_SUFFIX})
|
|
|
|
set(XLSXIO_LIB ${XLSXIO_LIB} PARENT_SCOPE)
|
|
|
|
set(XLSXIO_LIB ${XLSXIO_LIB} PARENT_SCOPE)
|
|
|
|
ExternalProject_Add(xlsxio_project
|
|
|
|
ExternalProject_Add(xlsxio_project
|
|
|
|
PREFIX xlsxio
|
|
|
|
PREFIX xlsxio
|
|
|
|
|
|
|
|
DEPENDS libexpat_project libzip_project
|
|
|
|
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/xlsxio
|
|
|
|
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/xlsxio
|
|
|
|
INSTALL_DIR ${XLSXIO_INSTALL_DIR}
|
|
|
|
INSTALL_DIR ${XLSXIO_INSTALL_DIR}
|
|
|
|
BUILD_BYPRODUCTS ${XLSXIO_LIB}
|
|
|
|
BUILD_BYPRODUCTS ${XLSXIO_LIB}
|
|
|
|
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} -DEXPAT_DIR=${LIBEXPAT_INSTALL_DIR} -DEXPAT_LIBRARIES=${LIBEXPAT_LIB} -DEXPAT_INCLUDE_DIRS=${LIBEXPAT_INSTALL_DIR}/include -DCMAKE_POSITION_INDEPENDENT_CODE=ON
|
|
|
|
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} -DEXPAT_DIR=${LIBEXPAT_INSTALL_DIR} -DEXPAT_LIBRARIES=${LIBEXPAT_LIB} -DEXPAT_INCLUDE_DIRS=${LIBEXPAT_INSTALL_DIR}/include -DCMAKE_POSITION_INDEPENDENT_CODE=ON
|
|
|
|
)
|
|
|
|
)
|
|
|
|
add_dependencies(xlsxio_project libexpat_project)
|
|
|
|
|
|
|
|
add_dependencies(xlsxio_project libzip_project)
|
|
|
|
|
|
|
|