mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-29 00:03:17 +00:00
24 lines
1.2 KiB
CMake
24 lines
1.2 KiB
CMake
foreach(schema ${SCHEMA_VERSIONS})
|
|
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})
|
|
target_compile_definitions(document_serializer_xml_ifc${schema} PRIVATE IfcSchema=Ifc${schema})
|
|
if(WASM_BUILD)
|
|
target_link_options(document_serializer_xml_ifc${schema} PRIVATE "SHELL:-s ERROR_ON_UNDEFINED_SYMBOLS=0")
|
|
endif()
|
|
|
|
if(GLTF_SUPPORT)
|
|
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)
|
|
target_compile_definitions(document_serializer_json_ifc${schema} PRIVATE IfcSchema=Ifc${schema})
|
|
if(WASM_BUILD)
|
|
target_link_options(document_serializer_json_ifc${schema} PRIVATE "SHELL:-s ERROR_ON_UNDEFINED_SYMBOLS=0")
|
|
endif()
|
|
endif()
|
|
endforeach()
|
|
|
|
set(document_serializer_libraries ${document_serializer_libraries} PARENT_SCOPE)
|