1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-21 11:57:44 +00:00
novus/cmake/Findstb.cmake
2023-09-23 14:57:46 -04:00

15 lines
No EOL
455 B
CMake

# SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
# SPDX-License-Identifier: CC0-1.0
find_path(
STB_INCLUDE_DIR
NAMES stb_image.h
PATH_SUFFIXES stb
)
find_package_handle_standard_args(stb DEFAULT_MSG STB_INCLUDE_DIR)
if(STB_FOUND)
mark_as_advanced(STB_INCLUDE_DIR)
add_library(stb INTERFACE)
target_include_directories(stb SYSTEM INTERFACE ${STB_INCLUDE_DIR})
add_library(stb::stb ALIAS stb)
endif()