mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 14:02:27 +00:00
cmake - only build examples if 2x3 is present in SCHEMA_VERSIONS
As examples currently require ifc2x3
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
# #
|
# #
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
if(SCHEMA_VERSIONS MATCHES "2x3")
|
||||||
ADD_EXECUTABLE(IfcParseExamples IfcParseExamples.cpp)
|
ADD_EXECUTABLE(IfcParseExamples IfcParseExamples.cpp)
|
||||||
TARGET_LINK_LIBRARIES(IfcParseExamples IfcParse)
|
TARGET_LINK_LIBRARIES(IfcParseExamples IfcParse)
|
||||||
set_target_properties(IfcParseExamples PROPERTIES FOLDER Examples)
|
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)
|
set_target_properties(IfcAdvancedHouse PROPERTIES FOLDER Examples)
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
endif(SCHEMA_VERSIONS MATCHES "2x3")
|
||||||
|
|
||||||
if(SCHEMA_VERSIONS MATCHES "4x3")
|
if(SCHEMA_VERSIONS MATCHES "4x3")
|
||||||
ADD_EXECUTABLE(IfcAlignment IfcAlignment.cpp)
|
ADD_EXECUTABLE(IfcAlignment IfcAlignment.cpp)
|
||||||
|
|||||||
Reference in New Issue
Block a user