mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 22:11:36 +00:00
17 lines
660 B
CMake
17 lines
660 B
CMake
|
|
# IfcConvert
|
||
|
|
if(WITH_RELATIONSHIP_VALIDATION)
|
||
|
|
file(GLOB IFCCONVERT_CPP_FILES *.cpp)
|
||
|
|
file(GLOB IFCCONVERT_H_FILES *.h)
|
||
|
|
else()
|
||
|
|
file(GLOB IFCCONVERT_CPP_FILES IfcConvert.cpp)
|
||
|
|
file(GLOB IFCCONVERT_H_FILES)
|
||
|
|
endif()
|
||
|
|
set(IFCCONVERT_FILES ${IFCCONVERT_CPP_FILES} ${IFCCONVERT_H_FILES})
|
||
|
|
add_executable(IfcConvert ${IFCCONVERT_FILES})
|
||
|
|
|
||
|
|
target_link_libraries(IfcConvert IfcGeom IfcParse Serializers ${OPENCASCADE_LIBRARIES} ${Boost_LIBRARIES} ${HDF5_LIBRARIES} ${USD_LIBRARIES})
|
||
|
|
if(WITH_RELATIONSHIP_VALIDATION)
|
||
|
|
set_property(TARGET IfcConvert APPEND_STRING PROPERTY COMPILE_FLAGS " -DWITH_RELATIONSHIP_VALIDATION")
|
||
|
|
endif()
|
||
|
|
|
||
|
|
install(TARGETS IfcConvert)
|