2026-04-17 11:24:09 +02:00
|
|
|
set(geometry_serialization_plugin_runtime_dir "${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>")
|
|
|
|
|
|
2025-11-15 20:31:13 +01:00
|
|
|
add_subdirectory(schema)
|
|
|
|
|
|
2026-04-17 11:24:09 +02:00
|
|
|
add_library(geometry_serializer Serialization.cpp opencascade_geometry_ifc_writer_plugin.cpp)
|
|
|
|
|
set_target_properties(geometry_serializer PROPERTIES
|
2026-05-08 13:39:52 +02:00
|
|
|
OUTPUT_NAME "ifcopenshell.geometry.writer"
|
2026-04-17 11:24:09 +02:00
|
|
|
COMPILE_FLAGS "-DIFC_GEOMSERIALIZATION_EXPORTS"
|
|
|
|
|
RUNTIME_OUTPUT_DIRECTORY "${geometry_serialization_plugin_runtime_dir}"
|
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY "${geometry_serialization_plugin_runtime_dir}"
|
|
|
|
|
)
|
|
|
|
|
target_link_libraries(geometry_serializer plugin IfcGeom IfcParse ${OpenCASCADE_LIBRARIES})
|
2026-04-15 18:07:28 +02:00
|
|
|
target_link_libraries(geometry_serializer geometry_kernel_opencascade)
|
2026-04-17 11:24:09 +02:00
|
|
|
set(IFCOPENSHELL_LIBRARIES ${IFCOPENSHELL_LIBRARIES} "geometry_serializer")
|
2025-11-15 20:31:13 +01:00
|
|
|
set(IFCOPENSHELL_LIBRARIES ${IFCOPENSHELL_LIBRARIES} PARENT_SCOPE)
|
|
|
|
|
|
2026-04-17 11:24:09 +02:00
|
|
|
install(FILES Serialization.h
|
2025-11-15 20:31:13 +01:00
|
|
|
DESTINATION ${INCLUDEDIR}/ifcgeom/Serialization
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
install(TARGETS geometry_serializer ${geometry_serializer_libraries})
|
2025-11-30 13:33:56 +01:00
|
|
|
|
|
|
|
|
set(geometry_serializer_libraries ${geometry_serializer_libraries} PARENT_SCOPE)
|