mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
Cmake install config fixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user