2025-11-15 21:13:05 +01:00
|
|
|
foreach(schema ${SCHEMA_VERSIONS})
|
2026-05-06 21:17:25 +02:00
|
|
|
if(NOT WASM_BUILD)
|
|
|
|
|
set(schema_plugin_library parse_schema_ifc${schema})
|
|
|
|
|
else()
|
|
|
|
|
set(schema_plugin_library)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
add_document_serializer_plugin(document_serializer_xml_ifc${schema} "document.xml.ifc${schema}" SOURCES XmlSerializer.cpp xml_plugin.cpp LIBRARIES ${schema_plugin_library})
|
2026-04-18 15:46:21 +02:00
|
|
|
target_compile_definitions(document_serializer_xml_ifc${schema} PRIVATE IfcSchema=Ifc${schema})
|
2026-05-06 21:17:25 +02:00
|
|
|
if(WASM_BUILD)
|
|
|
|
|
target_link_options(document_serializer_xml_ifc${schema} PRIVATE "SHELL:-s ERROR_ON_UNDEFINED_SYMBOLS=0")
|
|
|
|
|
endif()
|
2025-11-15 21:13:05 +01:00
|
|
|
|
2026-04-18 15:46:21 +02:00
|
|
|
if(GLTF_SUPPORT)
|
2026-05-06 21:17:25 +02:00
|
|
|
add_document_serializer_plugin(document_serializer_json_ifc${schema} "document.json.ifc${schema}" SOURCES JsonSerializer.cpp json_plugin.cpp LIBRARIES nlohmann_json::nlohmann_json ${schema_plugin_library} DEFINITIONS WITH_GLTF)
|
2026-04-18 15:46:21 +02:00
|
|
|
target_compile_definitions(document_serializer_json_ifc${schema} PRIVATE IfcSchema=Ifc${schema})
|
2026-05-06 21:17:25 +02:00
|
|
|
if(WASM_BUILD)
|
|
|
|
|
target_link_options(document_serializer_json_ifc${schema} PRIVATE "SHELL:-s ERROR_ON_UNDEFINED_SYMBOLS=0")
|
|
|
|
|
endif()
|
2026-04-17 11:24:09 +02:00
|
|
|
endif()
|
2025-11-15 21:13:05 +01:00
|
|
|
endforeach()
|
|
|
|
|
|
2026-04-17 11:24:09 +02:00
|
|
|
set(document_serializer_libraries ${document_serializer_libraries} PARENT_SCOPE)
|