From 01f97a5860cca13200a9c9c4fc73e7baa67f12e4 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 12 Dec 2025 17:04:46 +0500 Subject: [PATCH] IfcParse - export include path --- src/examples/CMakeLists.txt | 3 --- src/ifcparse/CMakeLists.txt | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/examples/CMakeLists.txt b/src/examples/CMakeLists.txt index 8e421b13b6..765b93cedd 100644 --- a/src/examples/CMakeLists.txt +++ b/src/examples/CMakeLists.txt @@ -43,7 +43,6 @@ 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) @@ -69,7 +68,6 @@ if(STANDALONE_PROJECT OR SCHEMA_VERSIONS MATCHES "2x3") add_library(CGAL::CGAL_INTERFACE INTERFACE IMPORTED) target_link_libraries(CGAL::CGAL_INTERFACE INTERFACE CGAL::CGAL) - target_include_directories(IfcHouseInterface INTERFACE "${IfcOpenShell_DIR}/../../../include") target_include_directories(IfcHouseInterface INTERFACE ${Boost_INCLUDE_DIRS}) target_link_libraries(IfcHouseInterface INTERFACE ${OpenCASCADE_LIBRARIES} RocksDB::rocksdb @@ -94,7 +92,6 @@ if(STANDALONE_PROJECT OR SCHEMA_VERSIONS MATCHES "4x3_add2") add_library(IfcAlignmentInterface INTERFACE) if(STANDALONE_PROJECT) - target_include_directories(IfcAlignmentInterface INTERFACE "${IfcOpenShell_DIR}/../../../include") target_include_directories(IfcAlignmentInterface INTERFACE ${Boost_INCLUDE_DIRS}) target_compile_definitions(IfcAlignmentInterface INTERFACE HAS_SCHEMA_4x3_add2 IFOPSH_WITH_ROCKSDB) target_link_libraries(IfcAlignment PRIVATE IfcOpenShell::IfcParse) diff --git a/src/ifcparse/CMakeLists.txt b/src/ifcparse/CMakeLists.txt index 5f29bbd812..ec27ba85c9 100644 --- a/src/ifcparse/CMakeLists.txt +++ b/src/ifcparse/CMakeLists.txt @@ -31,6 +31,7 @@ endforeach() set(IFCPARSE_FILES ${IFCPARSE_CPP_FILES} ${IFCPARSE_H_FILES}) add_library(IfcParse ${IFCPARSE_FILES}) +target_include_directories(IfcParse PUBLIC $) set_target_properties(IfcParse PROPERTIES COMPILE_FLAGS -DIFC_PARSE_EXPORTS