FindStb.cmake 701 B

123456789101112131415161718192021222324252627282930
  1. # Distributed under the OSI-approved BSD 3-Clause License.
  2. # Copyright Stefano Sinigardi
  3. #.rst:
  4. # FindStb
  5. # ------------
  6. #
  7. # Find the Stb include headers.
  8. #
  9. # Result Variables
  10. # ^^^^^^^^^^^^^^^^
  11. #
  12. # This module defines the following variables:
  13. #
  14. # ``Stb_FOUND``
  15. # True if Stb library found
  16. #
  17. # ``Stb_INCLUDE_DIR``
  18. # Location of Stb headers
  19. #
  20. include(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake)
  21. include(${CMAKE_ROOT}/Modules/SelectLibraryConfigurations.cmake)
  22. if(NOT Stb_INCLUDE_DIR)
  23. find_path(Stb_INCLUDE_DIR NAMES stb_image.h PATHS ${Stb_DIR} PATH_SUFFIXES include)
  24. endif()
  25. find_package_handle_standard_args(Stb DEFAULT_MSG Stb_INCLUDE_DIR)
  26. mark_as_advanced(Stb_INCLUDE_DIR)