2025-11-15 20:31:13 +01:00
|
|
|
add_subdirectory(schema)
|
|
|
|
|
|
|
|
|
|
add_library(geometry_serializer STATIC Serialization.cpp)
|
2025-12-12 14:28:07 +05:00
|
|
|
file(GLOB IFCGEOM_SERIALIZATION_H_FILE *.h)
|
|
|
|
|
|
|
|
|
|
set_target_properties(geometry_serializer PROPERTIES
|
|
|
|
|
COMPILE_FLAGS "-DIFC_GEOMSERIALIZATION_EXPORTS"
|
|
|
|
|
PUBLIC_HEADER "${IFCGEOM_SERIALIZATION_H_FILE}"
|
|
|
|
|
)
|
2025-11-15 20:31:13 +01:00
|
|
|
target_link_libraries(geometry_serializer ${geometry_serializer_libraries} IfcParse)
|
|
|
|
|
set(IFCOPENSHELL_LIBRARIES ${IFCOPENSHELL_LIBRARIES} "geometry_serializer" ${geometry_serializer_libraries})
|
|
|
|
|
set(IFCOPENSHELL_LIBRARIES ${IFCOPENSHELL_LIBRARIES} PARENT_SCOPE)
|
|
|
|
|
|
2025-12-11 19:22:49 +05:00
|
|
|
install(TARGETS geometry_serializer ${geometry_serializer_libraries}
|
|
|
|
|
EXPORT ${IFCOPENSHELL_EXPORT_TARGETS}
|
2025-12-12 14:28:07 +05:00
|
|
|
PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/ifcgeom/Serialization"
|
2025-12-11 19:22:49 +05:00
|
|
|
)
|
2025-11-30 13:33:56 +01:00
|
|
|
|
|
|
|
|
set(geometry_serializer_libraries ${geometry_serializer_libraries} PARENT_SCOPE)
|