From a62a4bb158d96b51efda00e2aad8d5ac0c3fb07a Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 12 Dec 2025 12:20:35 +0500 Subject: [PATCH] cmake - install examples too --- src/examples/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/examples/CMakeLists.txt b/src/examples/CMakeLists.txt index 809e4bccdf..5ade6fda83 100644 --- a/src/examples/CMakeLists.txt +++ b/src/examples/CMakeLists.txt @@ -52,6 +52,7 @@ if(STANDALONE_PROJECT OR SCHEMA_VERSIONS MATCHES "2x3") set_target_properties(IfcParseExamples PROPERTIES FOLDER Examples) target_compile_features(IfcParseExamples PRIVATE cxx_std_17) endif() + install(TARGETS IfcParseExamples) if(NOT STANDALONE_PROJECT AND WITH_OPENCASCADE) add_executable(IfcOpenHouse IfcOpenHouse.cpp) @@ -61,6 +62,8 @@ if(STANDALONE_PROJECT OR SCHEMA_VERSIONS MATCHES "2x3") add_executable(IfcAdvancedHouse IfcAdvancedHouse.cpp) target_link_libraries(IfcAdvancedHouse ${IFCOPENSHELL_LIBRARIES} ${OpenCASCADE_LIBRARIES}) set_target_properties(IfcAdvancedHouse PROPERTIES FOLDER Examples) + + install(TARGETS IfcOpenHouse IfcAdvancedHouse) endif() endif() @@ -72,4 +75,6 @@ if(NOT STANDALONE_PROJECT AND SCHEMA_VERSIONS MATCHES "4x3_add2") add_executable(IfcSimplifiedAlignment IfcSimplifiedAlignment.cpp) target_link_libraries(IfcSimplifiedAlignment ${IFCOPENSHELL_LIBRARIES}) set_target_properties(IfcSimplifiedAlignment PROPERTIES FOLDER Examples) + + install(TARGETS IfcAlignment IfcSimplifiedAlignment) endif()