mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-16 18:44:47 +00:00
Tighten scope of cmake vars and dirs
This commit is contained in:
@@ -36,6 +36,13 @@ set(IFCPARSE_FILES ${IFCPARSE_CPP_FILES} ${IFCPARSE_H_FILES})
|
||||
add_library(IfcParse ${IFCPARSE_FILES})
|
||||
add_library(parse ALIAS IfcParse)
|
||||
target_compile_definitions(IfcParse PUBLIC ${SCHEMA_DEFINITIONS})
|
||||
if(USE_MMAP)
|
||||
target_compile_definitions(IfcParse PUBLIC USE_MMAP)
|
||||
endif()
|
||||
if(WITH_ROCKSDB)
|
||||
target_compile_definitions(IfcParse PUBLIC IFOPSH_WITH_ROCKSDB)
|
||||
set(SWIG_DEFINES ${SWIG_DEFINES} -DIFOPSH_WITH_ROCKSDB PARENT_SCOPE)
|
||||
endif()
|
||||
set_target_properties(IfcParse PROPERTIES COMPILE_FLAGS -DIFC_PARSE_EXPORTS VERSION "${PROJECT_VERSION}" SOVERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}")
|
||||
|
||||
if(WASM_BUILD)
|
||||
@@ -44,6 +51,13 @@ else()
|
||||
target_link_libraries(IfcParse plugin ${Boost_LIBRARIES} ${BCRYPT_LIBRARIES})
|
||||
endif()
|
||||
|
||||
if(WITH_ROCKSDB)
|
||||
target_link_libraries(IfcParse RocksDB::rocksdb)
|
||||
if(WITH_ZSTD)
|
||||
target_link_libraries(IfcParse zstd::libzstd_static)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# CMake installation targets
|
||||
install(FILES ${IFCPARSE_H_FILES}
|
||||
DESTINATION ${INCLUDEDIR}/ifcparse
|
||||
|
||||
Reference in New Issue
Block a user