tibia-client/src/framework/cmake/FindZLIB.cmake

12 lines
436 B
CMake
Raw Normal View History

2011-05-15 23:12:39 +02:00
# Try to find the zlib librairy
# ZLIB_FOUND - system has zlib
# ZLIB_INCLUDE_DIR - the zlib include directory
# ZLIB_LIBRARY - the zlib library
FIND_PATH(ZLIB_INCLUDE_DIR NAMES zlib.h)
2012-04-14 02:14:25 +02:00
FIND_LIBRARY(ZLIB_LIBRARY NAMES libz.a libzlib.a zlib1.a z zlib zdll zlib1)
2011-05-15 23:12:39 +02:00
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ZLIB DEFAULT_MSG ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
MARK_AS_ADVANCED(ZLIB_LIBRARY ZLIB_INCLUDE_DIR)