aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/stb/FindStb.cmake
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/stb/FindStb.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/stb/FindStb.cmake')
-rw-r--r--vcpkg/ports/stb/FindStb.cmake29
1 files changed, 29 insertions, 0 deletions
diff --git a/vcpkg/ports/stb/FindStb.cmake b/vcpkg/ports/stb/FindStb.cmake
new file mode 100644
index 0000000..4ffa8b1
--- /dev/null
+++ b/vcpkg/ports/stb/FindStb.cmake
@@ -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)