mirror of
https://github.com/minetest/minetest.git
synced 2024-08-20 05:24:15 +02:00
21 lines
463 B
CMake
21 lines
463 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 base64.cpp base64.h)
|
||
|
add_library(tiniergltf::tiniergltf ALIAS tiniergltf)
|
||
|
|
||
|
target_include_directories(tiniergltf
|
||
|
INTERFACE
|
||
|
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>"
|
||
|
"${JSON_INCLUDE_DIR}" # Set in FindJson.cmake
|
||
|
)
|
||
|
|
||
|
target_link_libraries(tiniergltf)
|