Files
IfcOpenShell/src/ifcconvert/CMakeLists.txt
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
1.0 KiB
CMake
Raw Normal View History

# IfcConvert
2026-04-15 18:07:28 +02:00
add_executable(IfcConvert IfcConvert.cpp)
2026-04-18 15:46:21 +02:00
target_link_libraries(IfcConvert PRIVATE IfcGeom IfcParse ${OpenCASCADE_LIBRARIES} ${Boost_LIBRARIES} ${HDF5_LIBRARIES} ${USD_LIBRARIES})
if(TARGET geometry_serializer_hdf)
target_link_libraries(IfcConvert PRIVATE geometry_serializer_hdf)
2026-04-17 11:24:09 +02:00
endif()
2026-04-18 15:46:21 +02:00
if(kernel_libraries OR mapping_libraries OR geometry_serializer_libraries OR document_serializer_libraries)
add_dependencies(IfcConvert ${kernel_libraries} ${mapping_libraries} ${geometry_serializer_libraries} ${document_serializer_libraries})
endif()
set(_plugin_targets
${kernel_libraries}
${mapping_libraries}
${geometry_serializer_libraries}
${document_serializer_libraries}
)
set(_plugin_paths "")
foreach(t IN LISTS _plugin_targets)
string(APPEND _plugin_paths ";$<TARGET_FILE_DIR:${t}>")
endforeach()
set_target_properties(IfcConvert PROPERTIES
VS_DEBUGGER_ENVIRONMENT
"PATH=%PATH%;$<JOIN:$<TARGET_RUNTIME_DLL_DIRS:IfcConvert>,;>;${_plugin_paths}"
)
2025-11-28 16:45:40 +01:00
install(TARGETS IfcConvert)