Files
IfcOpenShell/src/serializers/schema_dependent/CMakeLists.txt
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
1.2 KiB
CMake
Raw Normal View History

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()
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()
endforeach()
2026-04-17 11:24:09 +02:00
set(document_serializer_libraries ${document_serializer_libraries} PARENT_SCOPE)