Option for ifcwrap cmake to run standalone #8165

This commit is contained in:
Thomas Krijnen
2026-06-17 14:28:23 +02:00
parent 4d3bff4e3a
commit d5bed316cd
6 changed files with 402 additions and 13 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ target_link_libraries(
IfcParse
)
install(TARGETS Serializers)
install(TARGETS Serializers EXPORT ${IFCOPENSHELL_EXPORT_TARGETS})
# Can't use `PUBLIC_HEADER` since we need two folders.
install(FILES ${SERIALIZERS_H_FILES} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/serializers/")
@@ -13,6 +13,7 @@ foreach(schema ${SCHEMA_VERSIONS})
if(NOT WASM_BUILD)
target_link_libraries(Serializers_ifc${schema} ${OpenCASCADE_LIBRARIES})
endif()
install(TARGETS Serializers_ifc${schema} EXPORT ${IFCOPENSHELL_EXPORT_TARGETS})
endforeach()
set(SERIALIZER_SCHEMA_LIBRARIES ${SERIALIZER_SCHEMA_LIBRARIES} PARENT_SCOPE)