Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 
 

49 řádky
1.5 KiB

  1. #-------------------------------------------------------------------
  2. # This file is part of the CMake build system for OGRE
  3. # (Object-oriented Graphics Rendering Engine)
  4. # For the latest info, see http://www.ogre3d.org/
  5. #
  6. # The contents of this file are placed in the public domain. Feel
  7. # free to make use of it in any way you like.
  8. #-------------------------------------------------------------------
  9. # - Try to find ZLIB
  10. # Once done, this will define
  11. #
  12. # ZLIB_FOUND - system has ZLIB
  13. # ZLIB_INCLUDE_DIRS - the ZLIB include directories
  14. # ZLIB_LIBRARIES - link these to use ZLIB
  15. include(FindPkgMacros)
  16. findpkg_begin(ZLIB)
  17. # Get path, convert backslashes as ${ENV_${var}}
  18. getenv_path(ZLIB_HOME)
  19. # construct search paths
  20. set(ZLIB_PREFIX_PATH ${ZLIB_HOME} ${ENV_ZLIB_HOME})
  21. create_search_paths(ZLIB)
  22. # redo search if prefix path changed
  23. clear_if_changed(ZLIB_PREFIX_PATH
  24. ZLIB_LIBRARY_FWK
  25. ZLIB_LIBRARY_REL
  26. ZLIB_LIBRARY_DBG
  27. ZLIB_INCLUDE_DIR
  28. )
  29. set(ZLIB_LIBRARY_NAMES z zlib zdll)
  30. get_debug_names(ZLIB_LIBRARY_NAMES)
  31. use_pkgconfig(ZLIB_PKGC zzip-zlib-config)
  32. findpkg_framework(ZLIB)
  33. find_path(ZLIB_INCLUDE_DIR NAMES zlib.h HINTS ${ZLIB_INC_SEARCH_PATH} ${ZLIB_PKGC_INCLUDE_DIRS})
  34. find_library(ZLIB_LIBRARY_REL NAMES ${ZLIB_LIBRARY_NAMES} HINTS ${ZLIB_LIB_SEARCH_PATH} ${ZLIB_PKGC_LIBRARY_DIRS} PATH_SUFFIXES "" release relwithdebinfo minsizerel)
  35. find_library(ZLIB_LIBRARY_DBG NAMES ${ZLIB_LIBRARY_NAMES_DBG} HINTS ${ZLIB_LIB_SEARCH_PATH} ${ZLIB_PKGC_LIBRARY_DIRS} PATH_SUFFIXES "" debug)
  36. make_library_set(ZLIB_LIBRARY)
  37. findpkg_finish(ZLIB)