Cmake install config fixes

This commit is contained in:
Thomas Krijnen
2026-07-30 08:54:08 +02:00
parent 6d7aa3c48c
commit 41308cf122
13 changed files with 75 additions and 17 deletions
+5 -1
View File
@@ -5,6 +5,10 @@ add_library(plugin ${PLUGIN_CPP_FILES} ${PLUGIN_H_FILES})
set_target_properties(plugin PROPERTIES
OUTPUT_NAME "ifcopenshell.plugin"
COMPILE_FLAGS "-DPLUGIN_EXPORTS")
target_include_directories(plugin PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
if (NOT CREATE_BUNDLE)
set_target_properties(plugin PROPERTIES
@@ -20,7 +24,7 @@ target_compile_definitions(plugin PRIVATE
target_link_libraries(plugin PRIVATE ${Boost_LIBRARIES})
install(TARGETS plugin)
install(TARGETS plugin EXPORT ${IFCOPENSHELL_EXPORT_TARGETS})
install(FILES ${PLUGIN_H_FILES}
DESTINATION ${INCLUDEDIR}/plugin
-3
View File
@@ -153,9 +153,6 @@ namespace {
namespace ifcopenshell {
namespace plugin {
PLUGIN_API void set_search_paths(const std::vector<std::string>& paths);
PLUGIN_API std::vector<std::string> search_paths();
PLUGIN_API void clear_search_paths();
PLUGIN_API std::filesystem::path add_search_paths_or_default(manager& manager, std::filesystem::path (*default_search_path)());
}
}
+3
View File
@@ -105,6 +105,9 @@ private:
PLUGIN_API abi_info host_abi();
PLUGIN_API void validate_abi(const abi_info& abi);
PLUGIN_API std::filesystem::path module_directory(const void* symbol);
PLUGIN_API void set_search_paths(const std::vector<std::string>& paths);
PLUGIN_API std::vector<std::string> search_paths();
PLUGIN_API void clear_search_paths();
}
}