FindZLIB.cmake 543 B

1234567891011121314151617181920212223
  1. #
  2. # Find the native ZLIB includes and library
  3. #
  4. # ZLIB_INCLUDE_DIR - where to find zlib.h, etc.
  5. # ZLIB_LIBRARIES - List of fully qualified libraries to link against when using zlib.
  6. # ZLIB_FOUND - Do not attempt to use zlib if "no" or undefined.
  7. FIND_PATH(ZLIB_INCLUDE_DIR zlib.h
  8. /usr/local/include
  9. /usr/include
  10. )
  11. FIND_LIBRARY(ZLIB_LIBRARY z
  12. /usr/lib
  13. /usr/local/lib
  14. )
  15. IF(ZLIB_INCLUDE_DIR)
  16. IF(ZLIB_LIBRARY)
  17. SET( ZLIB_LIBRARIES ${ZLIB_LIBRARY} )
  18. SET( ZLIB_FOUND "YES" )
  19. ENDIF(ZLIB_LIBRARY)
  20. ENDIF(ZLIB_INCLUDE_DIR)