diff --git a/src/examples/CMakeLists.txt b/src/examples/CMakeLists.txt index 5ade6fda83..00929f7269 100644 --- a/src/examples/CMakeLists.txt +++ b/src/examples/CMakeLists.txt @@ -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) diff --git a/src/examples/IfcParseExamples.cpp b/src/examples/IfcParseExamples.cpp index dcd3654d83..e8ad950919 100644 --- a/src/examples/IfcParseExamples.cpp +++ b/src/examples/IfcParseExamples.cpp @@ -20,9 +20,9 @@ // TODO: Multiple schemas #define IfcSchema Ifc2x3 -#include "../ifcparse/IfcFile.h" -#include "../ifcparse/IfcLogger.h" -#include "../ifcparse/Ifc2x3.h" +#include "ifcparse/IfcFile.h" +#include "ifcparse/IfcLogger.h" +#include "ifcparse/Ifc2x3.h" #include #include