mirror of
https://github.com/minetest/minetest.git
synced 2024-11-29 19:13:44 +01:00
ac11a14509
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>
23 lines
552 B
CMake
23 lines
552 B
CMake
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)
|