Merge pull request #127 from nyue/master

Renamed glTFConfig to TinyGLTFConfig
This commit is contained in:
Syoyo Fujita 2018-12-28 14:31:33 +09:00 committed by GitHub
commit 9fcd3f998e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 18 deletions

View File

@ -22,7 +22,7 @@ INSTALL ( FILES
)
INSTALL ( FILES
cmake/glTFConfig.cmake
cmake/TinyGLTFConfig.cmake
DESTINATION
cmake
)

View File

@ -0,0 +1,15 @@
# -*- 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 ()

View File

@ -1,17 +0,0 @@
# -*- 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 ()