Files
IfcOpenShell/src/ifcgeom/Serialization/schema/CMakeLists.txt
T

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

21 lines
1006 B
CMake
Raw Normal View History

2026-04-24 13:36:06 +02:00
if (NOT WASM_BUILD)
foreach(schema ${SCHEMA_VERSIONS})
2026-04-17 11:24:09 +02:00
add_library(geometry_serializer_ifc${schema} SHARED Serialization.cpp plugin.cpp)
2026-05-06 21:17:25 +02:00
target_link_libraries(geometry_serializer_ifc${schema} PRIVATE plugin geometry_serializer IfcGeom IfcParse parse_schema_ifc${schema} ${OpenCASCADE_LIBRARIES})
2026-04-17 11:24:09 +02:00
set_target_properties(geometry_serializer_ifc${schema} PROPERTIES
COMPILE_FLAGS "-DIfcSchema=Ifc${schema}"
2026-05-06 21:17:25 +02:00
OUTPUT_NAME "ifcopenshell.geometry.serialization.ifc${schema}"
2026-04-17 11:24:09 +02:00
RUNTIME_OUTPUT_DIRECTORY "${geometry_serialization_plugin_runtime_dir}"
LIBRARY_OUTPUT_DIRECTORY "${geometry_serialization_plugin_runtime_dir}"
)
2026-05-05 21:42:39 +02:00
ifcopenshell_wasm_plugin_link_options(
geometry_serializer_ifc${schema}
ifcopenshell_register_opencascade_geometry_ifc_writer_plugin_v1
)
list(APPEND geometry_serializer_libraries geometry_serializer_ifc${schema})
endforeach()
2026-04-17 11:24:09 +02:00
set(geometry_serializer_libraries ${geometry_serializer_libraries} PARENT_SCOPE)
2026-04-24 13:36:06 +02:00
endif()