speed-dreams-code/cmake/FindTinyGLTF.cmake
xavi92 6d7ca06e02 String trailing whitespaces
The following shell script was used:

while read f
do
        sed -Ei 's/[[:space:]]+$//g' "$f"
done <<EOF
$(svn ls -R | grep \
        -e '.\cpp$' \
        -e '\.cmake$' \
        -e '\.txt$' \
        -e '\.cppcheck$' \
        -e '\.frag$' \
        -e '\.h$' \
        -e '\.hpp$' \
        -e '\.vert$' \
        -e '\.xml$' \
        -e '\.java$' \
        -e '\.c$')
EOF

As a side effect, this has also converted some files from CRLF line
endings to LF.

File extensions such as .ac or .osg were intentionally left out because
those usually are very large files generated by tools.



git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9507 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 6c1e5ab34415982ec77fc92a77e1b1c149518eca
Former-commit-id: c6cf9480ae7c1d2f9a999eb6c6b976eef8bae3ba
2024-07-30 21:45:07 +00:00

22 lines
760 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)