CMakeLists.txt 552 B

12345678910111213141516171819202122
  1. cmake_minimum_required(VERSION 3.12)
  2. project(tiniergltf
  3. VERSION 1.0.0
  4. LANGUAGES CXX
  5. )
  6. set(CMAKE_CXX_STANDARD 17)
  7. set(CMAKE_CXX_STANDARD_REQUIRED ON)
  8. add_library(tiniergltf OBJECT tiniergltf.hpp)
  9. add_library(tiniergltf::tiniergltf ALIAS tiniergltf)
  10. set_target_properties(tiniergltf PROPERTIES LINKER_LANGUAGE CXX)
  11. target_include_directories(tiniergltf
  12. INTERFACE
  13. "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>"
  14. "${JSON_INCLUDE_DIR}" # Set in FindJson.cmake
  15. "${CMAKE_SOURCE_DIR}/src" # util/base64.h
  16. )
  17. target_link_libraries(tiniergltf)