mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +00:00
Tighten scope of cmake vars and dirs
This commit is contained in:
@@ -14,6 +14,18 @@ add_library(IfcGeom ${SCHEMA_AGNOSTIC_FILES})
|
||||
add_library(geometry ALIAS IfcGeom)
|
||||
set_target_properties(IfcGeom PROPERTIES COMPILE_FLAGS -DIFC_GEOM_EXPORTS VERSION "${PROJECT_VERSION}" SOVERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}")
|
||||
target_compile_definitions(IfcGeom PRIVATE BOOST_DLL_USE_STD_FS SERIALIZERS_EXPORTS)
|
||||
if(WITH_CGAL)
|
||||
target_compile_definitions(IfcGeom PUBLIC IFOPSH_WITH_CGAL)
|
||||
endif()
|
||||
if(WITH_OPENCASCADE)
|
||||
target_compile_definitions(IfcGeom PUBLIC IFOPSH_WITH_OPENCASCADE)
|
||||
endif()
|
||||
if(WITH_MANIFOLD)
|
||||
target_compile_definitions(IfcGeom PUBLIC IFOPSH_WITH_MANIFOLD)
|
||||
endif()
|
||||
if(HDF5_SUPPORT)
|
||||
target_compile_definitions(IfcGeom PUBLIC WITH_HDF5)
|
||||
endif()
|
||||
|
||||
if(UNIX)
|
||||
find_package(Threads)
|
||||
|
||||
Reference in New Issue
Block a user