cmake - only build examples if 2x3 is present in SCHEMA_VERSIONS

As examples currently require ifc2x3
This commit is contained in:
Andrej730
2025-09-19 18:55:12 +05:00
parent da4508ef9a
commit 8bb7ef5e25
+2
View File
@@ -17,6 +17,7 @@
# #
################################################################################
if(SCHEMA_VERSIONS MATCHES "2x3")
ADD_EXECUTABLE(IfcParseExamples IfcParseExamples.cpp)
TARGET_LINK_LIBRARIES(IfcParseExamples IfcParse)
set_target_properties(IfcParseExamples PROPERTIES FOLDER Examples)
@@ -33,6 +34,7 @@ TARGET_LINK_LIBRARIES(IfcAdvancedHouse ${IFCOPENSHELL_LIBRARIES} ${OPENCASCADE_L
set_target_properties(IfcAdvancedHouse PROPERTIES FOLDER Examples)
endif()
endif(SCHEMA_VERSIONS MATCHES "2x3")
if(SCHEMA_VERSIONS MATCHES "4x3")
ADD_EXECUTABLE(IfcAlignment IfcAlignment.cpp)