improve symbol visibilty and entt api import

This commit is contained in:
Green Sky 2024-05-19 11:40:20 +02:00
parent 8fc197423a
commit 99930c1b3d
No known key found for this signature in database
2 changed files with 9 additions and 0 deletions

View File

@ -4,6 +4,12 @@ add_library(plugin_sdbot-webui SHARED
./plugin_sdbot-webui.cpp
)
set_target_properties(plugin_sdbot-webui PROPERTIES
C_VISIBILITY_PRESET hidden
POSITION_INDEPENDENT_CODE ON
)
target_compile_definitions(plugin_sdbot-webui PUBLIC ENTT_API_IMPORT)
target_link_libraries(plugin_sdbot-webui PUBLIC
solanaceae_plugin
solanaceae_sdbot-webui

View File

@ -4,6 +4,9 @@
#include <solanaceae/util/config_model.hpp>
#include <entt/entt.hpp>
#include <entt/fwd.hpp>
#include <memory>
#include <iostream>