FIND_PACKAGE(ZLIB)

IF(ZLIB_FOUND)
	MESSAGE(STATUS "Check for installed ZLIB -- found")
	SET(MINIZIP_SRCS
		ioapi.c
		minizip.c
		zip.c)

	ADD_EXECUTABLE(minizip ${MINIZIP_SRCS} )

	TARGET_LINK_LIBRARIES(minizip ${ZLIB_LIBRARIES})

	INSTALL(TARGETS minizip RUNTIME DESTINATION bin)
ELSE(ZLIB_FOUND)
	MESSAGE(STATUS "Check for installed ZLIB -- not found")
ENDIF(ZLIB_FOUND)
