if(MSVC)
		 add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
endif(MSVC)

add_library(z adler32.c compress.c crc32.c gzio.c uncompr.c deflate.c trees.c
		 zutil.c inflate.c infback.c inftrees.c inffast.c)

if(BUILD_SHARED_LIBS)
		 install(TARGETS Z DESTINATION lib)
endif(BUILD_SHARED_LIBS)
