-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Distributed under the OSI-approved BSD 3-Clause License. | ||
|
||
#.rst: | ||
# FindStb | ||
# ------------ | ||
# | ||
# Find the Stb include headers. | ||
# | ||
# Result Variables | ||
# ^^^^^^^^^^^^^^^^ | ||
# | ||
# This module defines the following variables: | ||
# | ||
# ``Stb_FOUND`` | ||
# True if Stb library found | ||
# | ||
# ``Stb_INCLUDE_DIR`` | ||
# Location of Stb headers | ||
# | ||
|
||
include(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake) | ||
include(${CMAKE_ROOT}/Modules/SelectLibraryConfigurations.cmake) | ||
|
||
if(NOT Stb_INCLUDE_DIR) | ||
find_path(Stb_INCLUDE_DIR NAMES stb_image.h PATHS ${Stb_DIR} PATH_SUFFIXES include) | ||
endif() | ||
|
||
find_package_handle_standard_args(Stb DEFAULT_MSG Stb_INCLUDE_DIR) | ||
mark_as_advanced(Stb_INCLUDE_DIR) |