mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 22:11:36 +00:00
cmake - install examples too
This commit is contained in:
@@ -52,6 +52,7 @@ if(STANDALONE_PROJECT OR SCHEMA_VERSIONS MATCHES "2x3")
|
|||||||
set_target_properties(IfcParseExamples PROPERTIES FOLDER Examples)
|
set_target_properties(IfcParseExamples PROPERTIES FOLDER Examples)
|
||||||
target_compile_features(IfcParseExamples PRIVATE cxx_std_17)
|
target_compile_features(IfcParseExamples PRIVATE cxx_std_17)
|
||||||
endif()
|
endif()
|
||||||
|
install(TARGETS IfcParseExamples)
|
||||||
|
|
||||||
if(NOT STANDALONE_PROJECT AND WITH_OPENCASCADE)
|
if(NOT STANDALONE_PROJECT AND WITH_OPENCASCADE)
|
||||||
add_executable(IfcOpenHouse IfcOpenHouse.cpp)
|
add_executable(IfcOpenHouse IfcOpenHouse.cpp)
|
||||||
@@ -61,6 +62,8 @@ if(STANDALONE_PROJECT OR SCHEMA_VERSIONS MATCHES "2x3")
|
|||||||
add_executable(IfcAdvancedHouse IfcAdvancedHouse.cpp)
|
add_executable(IfcAdvancedHouse IfcAdvancedHouse.cpp)
|
||||||
target_link_libraries(IfcAdvancedHouse ${IFCOPENSHELL_LIBRARIES} ${OpenCASCADE_LIBRARIES})
|
target_link_libraries(IfcAdvancedHouse ${IFCOPENSHELL_LIBRARIES} ${OpenCASCADE_LIBRARIES})
|
||||||
set_target_properties(IfcAdvancedHouse PROPERTIES FOLDER Examples)
|
set_target_properties(IfcAdvancedHouse PROPERTIES FOLDER Examples)
|
||||||
|
|
||||||
|
install(TARGETS IfcOpenHouse IfcAdvancedHouse)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@@ -72,4 +75,6 @@ if(NOT STANDALONE_PROJECT AND SCHEMA_VERSIONS MATCHES "4x3_add2")
|
|||||||
add_executable(IfcSimplifiedAlignment IfcSimplifiedAlignment.cpp)
|
add_executable(IfcSimplifiedAlignment IfcSimplifiedAlignment.cpp)
|
||||||
target_link_libraries(IfcSimplifiedAlignment ${IFCOPENSHELL_LIBRARIES})
|
target_link_libraries(IfcSimplifiedAlignment ${IFCOPENSHELL_LIBRARIES})
|
||||||
set_target_properties(IfcSimplifiedAlignment PROPERTIES FOLDER Examples)
|
set_target_properties(IfcSimplifiedAlignment PROPERTIES FOLDER Examples)
|
||||||
|
|
||||||
|
install(TARGETS IfcAlignment IfcSimplifiedAlignment)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user