# -*- cmake -*- project(llgltf) include(00-Common) include(LLCommon) include(LLMath) include(LLPrimitive) include(LLRender) set(llgltf_SOURCE_FILES llgltfaccessor.cpp llgltfanimation.cpp llgltfasset.cpp llgltfprimitive.cpp ) set(llgltf_HEADER_FILES CMakeLists.txt llgltfaccessor.h llgltfanimation.h llgltfasset.h llgltfbufferutil.h llgltfprimitive.h ) set_source_files_properties(${llgltf_HEADER_FILES} PROPERTIES HEADER_FILE_ONLY TRUE) list(APPEND llgltf_SOURCE_FILES ${llgltf_HEADER_FILES}) add_library (llgltf ${llgltf_SOURCE_FILES}) add_dependencies(llgltf prepare) target_link_libraries(llgltf ${LLCOMMON_LIBRARIES} ${LLMATH_LIBRARIES} ${LLPRIMITIVE_LIBRARIES} ${LLRENDER_LIBRARIES} ) if (NOT ${CMAKE_VERSION} VERSION_LESS "3.16.0") target_precompile_headers(llgltf PRIVATE "glh_linear.h") if (USEUNITYBUILD) set_target_properties(llgltf PROPERTIES UNITY_BUILD ON) endif (USEUNITYBUILD) endif () get_directory_property(ALLDEFINES COMPILE_DEFINITIONS) message("llgltf COMPILE_DEFINITIONS = ${ALLDEFINES}")