mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-03 13:40:36 +08:00

Added the glTFConfig.cmake file so that once installed, it is easy for developers to find all the path location for include purposes.
18 lines
489 B
CMake
18 lines
489 B
CMake
# -*- cmake -*-
|
|
# - Find glTF
|
|
|
|
# glTF_INCLUDE_DIR glTF's include directory
|
|
|
|
|
|
FIND_PACKAGE ( PackageHandleStandardArgs )
|
|
|
|
SET ( glTF_INCLUDE_DIR "${glTF_DIR}/../include" CACHE STRING "glTF include directory")
|
|
|
|
FIND_FILE ( glTF_HEADER tiny_gltf.h PATHS ${glTF_INCLUDE_DIR} )
|
|
|
|
IF (glTF_HEADER)
|
|
# MESSAGE ( STATUS "FOUND tiny_gltf.h, glTF_INCLUDE_DIR = ${glTF_INCLUDE_DIR}")
|
|
ELSE ()
|
|
MESSAGE ( FATAL_ERROR "Unable to find tiny_gltf.h, glTF_INCLUDE_DIR = ${glTF_INCLUDE_DIR}")
|
|
ENDIF ()
|