IfcParseExamples not to rely on includes

This commit is contained in:
Andrej730
2025-12-12 13:55:44 +05:00
parent 92964fb5ef
commit 99835fcab3
2 changed files with 5 additions and 3 deletions
+2
View File
@@ -42,12 +42,14 @@ if(STANDALONE_PROJECT OR SCHEMA_VERSIONS MATCHES "2x3")
add_executable(IfcParseExamples IfcParseExamples.cpp)
if(STANDALONE_PROJECT)
target_include_directories(IfcParseExamples PRIVATE "${IfcOpenShell_DIR}/../../../include")
target_include_directories(IfcParseExamples PRIVATE ${Boost_INCLUDE_DIRS})
target_link_libraries(IfcParseExamples ${Boost_LIBRARIES})
target_link_libraries(IfcParseExamples IfcOpenShell::IfcParse)
target_compile_features(IfcParseExamples PRIVATE cxx_std_17)
target_compile_definitions(IfcParseExamples PRIVATE "SCHEMA_SEQ=(2x3)" HAS_SCHEMA_2x3 IFOPSH_WITH_ROCKSDB)
else()
target_include_directories(IfcParseExamples PRIVATE "${CMAKE_SOURCE_DIR}/../src")
target_link_libraries(IfcParseExamples IfcParse)
set_target_properties(IfcParseExamples PROPERTIES FOLDER Examples)
target_compile_features(IfcParseExamples PRIVATE cxx_std_17)