mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-04-21 13:39:54 +08:00

This renaming is done so that the config file matches the project name which is TinyGLTF. This is done to prevent future name collision should the Khronos glTF project decides to provide their own CMake configuration file.
16 lines
447 B
CMake
16 lines
447 B
CMake
# -*- cmake -*-
|
|
# - Find TinyGLTF
|
|
|
|
# TinyGLTF_INCLUDE_DIR TinyGLTF's include directory
|
|
|
|
|
|
FIND_PACKAGE ( PackageHandleStandardArgs )
|
|
|
|
SET ( TinyGLTF_INCLUDE_DIR "${TinyGLTF_DIR}/../include" CACHE STRING "TinyGLTF include directory")
|
|
|
|
FIND_FILE ( TinyGLTF_HEADER tiny_gltf.h PATHS ${TinyGLTF_INCLUDE_DIR} )
|
|
|
|
IF (NOT TinyGLTF_HEADER)
|
|
MESSAGE ( FATAL_ERROR "Unable to find tiny_gltf.h, TinyGLTF_INCLUDE_DIR = ${TinyGLTF_INCLUDE_DIR}")
|
|
ENDIF ()
|