]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | # Distributed under the OSI-approved BSD 3-Clause License. |
2 | ||
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 | ||
21 | include(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake) | |
22 | include(${CMAKE_ROOT}/Modules/SelectLibraryConfigurations.cmake) | |
23 | ||
24 | if(NOT Stb_INCLUDE_DIR) | |
25 | find_path(Stb_INCLUDE_DIR NAMES stb_image.h PATHS ${Stb_DIR} PATH_SUFFIXES include) | |
26 | endif() | |
27 | ||
28 | find_package_handle_standard_args(Stb DEFAULT_MSG Stb_INCLUDE_DIR) | |
29 | mark_as_advanced(Stb_INCLUDE_DIR) |