mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-07-31 23:52:01 +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.
29 lines
434 B
CMake
29 lines
434 B
CMake
cmake_minimum_required(VERSION 3.6)
|
|
|
|
PROJECT (tinygltf)
|
|
|
|
SET(CMAKE_CXX_STANDARD 11)
|
|
|
|
ADD_EXECUTABLE ( loader_example
|
|
loader_example.cc
|
|
)
|
|
|
|
ADD_SUBDIRECTORY ( examples/gltfutil )
|
|
ADD_SUBDIRECTORY ( examples/glview )
|
|
ADD_SUBDIRECTORY ( examples/validator )
|
|
|
|
INSTALL ( FILES
|
|
json.hpp
|
|
stb_image.h
|
|
stb_image_write.h
|
|
tiny_gltf.h
|
|
DESTINATION
|
|
include
|
|
)
|
|
|
|
INSTALL ( FILES
|
|
cmake/TinyGLTFConfig.cmake
|
|
DESTINATION
|
|
cmake
|
|
)
|