Enable bzip2 decompression support

Build the minizip library with HAVE_BZIP2 and link to libbz2
This commit is contained in:
build 2011-09-05 14:51:36 +01:00
parent 4f13ad97b7
commit cdbabeb179

View file

@ -25,13 +25,15 @@ if (APPLE)
add_definitions("-DUSE_FILE32API")
endif()
add_definitions("-DHAVE_BZIP2")
add_library(minizip
${SOURCES}
${HEADERS}
)
if (UNIX)
target_link_libraries(minizip z)
target_link_libraries(minizip z bz2)
else()
target_link_libraries(minizip "${CMAKE_CURRENT_SOURCE_DIR}/../zlib/prebuilt/zlib.lib")
endif()