mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 22:11:36 +00:00
IfcParse - export include path
This commit is contained in:
@@ -43,7 +43,6 @@ if(STANDALONE_PROJECT OR SCHEMA_VERSIONS MATCHES "2x3")
|
|||||||
add_executable(IfcParseExamples IfcParseExamples.cpp)
|
add_executable(IfcParseExamples IfcParseExamples.cpp)
|
||||||
|
|
||||||
if(STANDALONE_PROJECT)
|
if(STANDALONE_PROJECT)
|
||||||
target_include_directories(IfcParseExamples PRIVATE "${IfcOpenShell_DIR}/../../../include")
|
|
||||||
target_include_directories(IfcParseExamples PRIVATE ${Boost_INCLUDE_DIRS})
|
target_include_directories(IfcParseExamples PRIVATE ${Boost_INCLUDE_DIRS})
|
||||||
target_link_libraries(IfcParseExamples ${Boost_LIBRARIES})
|
target_link_libraries(IfcParseExamples ${Boost_LIBRARIES})
|
||||||
target_link_libraries(IfcParseExamples IfcOpenShell::IfcParse)
|
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)
|
add_library(CGAL::CGAL_INTERFACE INTERFACE IMPORTED)
|
||||||
target_link_libraries(CGAL::CGAL_INTERFACE INTERFACE CGAL::CGAL)
|
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_include_directories(IfcHouseInterface INTERFACE ${Boost_INCLUDE_DIRS})
|
||||||
target_link_libraries(IfcHouseInterface
|
target_link_libraries(IfcHouseInterface
|
||||||
INTERFACE ${OpenCASCADE_LIBRARIES} RocksDB::rocksdb
|
INTERFACE ${OpenCASCADE_LIBRARIES} RocksDB::rocksdb
|
||||||
@@ -94,7 +92,6 @@ if(STANDALONE_PROJECT OR SCHEMA_VERSIONS MATCHES "4x3_add2")
|
|||||||
add_library(IfcAlignmentInterface INTERFACE)
|
add_library(IfcAlignmentInterface INTERFACE)
|
||||||
|
|
||||||
if(STANDALONE_PROJECT)
|
if(STANDALONE_PROJECT)
|
||||||
target_include_directories(IfcAlignmentInterface INTERFACE "${IfcOpenShell_DIR}/../../../include")
|
|
||||||
target_include_directories(IfcAlignmentInterface INTERFACE ${Boost_INCLUDE_DIRS})
|
target_include_directories(IfcAlignmentInterface INTERFACE ${Boost_INCLUDE_DIRS})
|
||||||
target_compile_definitions(IfcAlignmentInterface INTERFACE HAS_SCHEMA_4x3_add2 IFOPSH_WITH_ROCKSDB)
|
target_compile_definitions(IfcAlignmentInterface INTERFACE HAS_SCHEMA_4x3_add2 IFOPSH_WITH_ROCKSDB)
|
||||||
target_link_libraries(IfcAlignment PRIVATE IfcOpenShell::IfcParse)
|
target_link_libraries(IfcAlignment PRIVATE IfcOpenShell::IfcParse)
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ endforeach()
|
|||||||
set(IFCPARSE_FILES ${IFCPARSE_CPP_FILES} ${IFCPARSE_H_FILES})
|
set(IFCPARSE_FILES ${IFCPARSE_CPP_FILES} ${IFCPARSE_H_FILES})
|
||||||
|
|
||||||
add_library(IfcParse ${IFCPARSE_FILES})
|
add_library(IfcParse ${IFCPARSE_FILES})
|
||||||
|
target_include_directories(IfcParse PUBLIC $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
|
||||||
set_target_properties(IfcParse
|
set_target_properties(IfcParse
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
COMPILE_FLAGS -DIFC_PARSE_EXPORTS
|
COMPILE_FLAGS -DIFC_PARSE_EXPORTS
|
||||||
|
|||||||
Reference in New Issue
Block a user