mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-03 08:45:25 +01:00
Add static glTF support (#14557)
Co-authored-by: Lars Mueller <appgurulars@gmx.de> Co-authored-by: jordan4ibanez <jordan4ibanez@users.noreply.github.com> Co-authored-by: sfan5 <sfan5@live.de> Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
This commit is contained in:
22
lib/tiniergltf/CMakeLists.txt
Normal file
22
lib/tiniergltf/CMakeLists.txt
Normal file
@@ -0,0 +1,22 @@
|
||||
cmake_minimum_required(VERSION 3.12)
|
||||
|
||||
project(tiniergltf
|
||||
VERSION 1.0.0
|
||||
LANGUAGES CXX
|
||||
)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
add_library(tiniergltf OBJECT tiniergltf.hpp)
|
||||
add_library(tiniergltf::tiniergltf ALIAS tiniergltf)
|
||||
set_target_properties(tiniergltf PROPERTIES LINKER_LANGUAGE CXX)
|
||||
|
||||
target_include_directories(tiniergltf
|
||||
INTERFACE
|
||||
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>"
|
||||
"${JSON_INCLUDE_DIR}" # Set in FindJson.cmake
|
||||
"${CMAKE_SOURCE_DIR}/src" # util/base64.h
|
||||
)
|
||||
|
||||
target_link_libraries(tiniergltf)
|
||||
Reference in New Issue
Block a user