Files
IfcOpenShell/src/plugin/CMakeLists.txt
T

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

28 lines
691 B
CMake
Raw Normal View History

2026-04-14 13:50:23 +02:00
file(GLOB PLUGIN_H_FILES *.h)
file(GLOB PLUGIN_CPP_FILES *.cpp)
add_library(plugin ${PLUGIN_CPP_FILES} ${PLUGIN_H_FILES})
set_target_properties(plugin PROPERTIES
2026-05-08 13:39:52 +02:00
OUTPUT_NAME "ifcopenshell.plugin"
COMPILE_FLAGS "-DPLUGIN_EXPORTS")
if (NOT CREATE_BUNDLE)
set_target_properties(plugin PROPERTIES
2026-04-14 13:50:23 +02:00
VERSION "${PROJECT_VERSION}"
SOVERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}"
)
endif()
2026-04-14 13:50:23 +02:00
target_compile_definitions(plugin PRIVATE
BOOST_DLL_USE_STD_FS
PLUGIN_IFCOPENSHELL_VERSION="${PROJECT_VERSION}"
)
target_link_libraries(plugin PRIVATE ${Boost_LIBRARIES})
install(TARGETS plugin)
install(FILES ${PLUGIN_H_FILES}
DESTINATION ${INCLUDEDIR}/plugin
)