1# This module tries to find miniz library and include files 2# 3# MINIZ_INCLUDE_DIR, path where to find miniz.h 4# MINIZ_LIBRARY_DIR, path where to find libminiz.so 5# MINIZ_LIBRARIES, the library to link against 6# MINIZ_FOUND, If false, do not try to use miniz 7# 8# This currently works probably only for Linux 9 10FIND_PATH ( MINIZ_INCLUDE_DIR miniz.h 11 /usr/local/include 12 /usr/include 13) 14 15FIND_LIBRARY ( MINIZ_LIBRARIES libminiz.so libminiz.a libminiz.so.2 libminiz.so.0.1 16 /usr/local/lib 17 /usr/local/lib64 18 /usr/lib 19 /usr/lib64 20) 21 22GET_FILENAME_COMPONENT( MINIZ_LIBRARY_DIR ${MINIZ_LIBRARIES} PATH ) 23 24SET ( MINIZ_FOUND "NO" ) 25IF ( MINIZ_INCLUDE_DIR ) 26 IF ( MINIZ_LIBRARIES ) 27 SET ( MINIZ_FOUND "YES" ) 28 ENDIF ( MINIZ_LIBRARIES ) 29ENDIF ( MINIZ_INCLUDE_DIR ) 30 31MARK_AS_ADVANCED( 32 MINIZ_LIBRARY_DIR 33 MINIZ_INCLUDE_DIR 34 MINIZ_LIBRARIES 35) 36