SET(ZLIB_HOME "${ROKLEGEND_DEPENDENCIES_DIR}/zlib")
SET(ZLIB_LIBRARY_NAME zlib)
ADD_SUBDIRECTORY(${ZLIB_HOME})

RO_TARGET_ENABLE_AVX2(${ZLIB_LIBRARY_NAME})

SET(ZLIB_INCLUDE_DIRS ${ZLIB_HOME}/include)
SET(ZLIB_LIBRARY_DIRS ${ROKLEGEND_LIB_DIR})
SET(ZLIB_LIBRARIES debug ${ZLIB_LIBRARY_DIRS}/Debug/zlib_d.lib optimized ${ZLIB_LIBRARY_DIRS}/Release/zlib.lib)