6b142146cd
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8865 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 941508cbe6acf08848d3fe00708402fc5e2cde30 Former-commit-id: 5821ec5ab6bf8dea665568198753639fc1287f94
22 lines
783 B
CMake
22 lines
783 B
CMake
# Locate TinyGLTF (optionally header-only) library
|
|
# This module defines
|
|
# TINYGLTF_FOUND :
|
|
# TINYGLTF_INCLUDE_DIR : where to find the headers
|
|
# Created by Joe Thompson
|
|
|
|
find_path(TINYGLTF_INCLUDE_DIR tiny_gltf.h)
|
|
|
|
find_library(TINYGLTF_LIBRARY NAMES tinygltf)
|
|
|
|
# handle the QUIETLY and REQUIRED arguments and set TINYGLTF_FOUND to TRUE if
|
|
# all listed variables are TRUE
|
|
include(FindPackageHandleStandardArgs)
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(TinyGLTF DEFAULT_MSG TINYGLTF_LIBRARY TINYGLTF_INCLUDE_DIR)
|
|
|
|
#if(TINYGLTF_FOUND)
|
|
set(TINYGLTF_LIBRARIES ${TINYGLTF_LIBRARY})
|
|
#endif()
|
|
# Set the old TINYGLTF_INCLUDE_DIRS variable for backwards compatibility
|
|
set(TINYGLTF_INCLUDE_DIRS ${TINYGLTF_INCLUDE_DIR})
|
|
|
|
mark_as_advanced(TINYGLTF_LIBRARY TINYGLTF_INCLUDE_DIR)
|