symbol visiblity and entt export

This commit is contained in:
Green Sky 2024-05-19 11:48:03 +02:00
parent 71d93329c5
commit 446a4939f5
No known key found for this signature in database
2 changed files with 7 additions and 0 deletions

View File

@ -25,6 +25,10 @@ add_executable(totato
./fun_commands.cpp ./fun_commands.cpp
) )
set_target_properties(totato PROPERTIES POSITION_INDEPENDENT_CODE ON)
# probably not enough
target_compile_definitions(totato PUBLIC ENTT_API_EXPORT)
target_compile_features(totato PUBLIC cxx_std_17) target_compile_features(totato PUBLIC cxx_std_17)
target_link_libraries(totato PUBLIC target_link_libraries(totato PUBLIC
solanaceae_util solanaceae_util

View File

@ -29,6 +29,9 @@
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
#include <entt/entt.hpp>
#include <entt/fwd.hpp>
#include <cstdint> #include <cstdint>
#include <cmath> #include <cmath>
#include <chrono> #include <chrono>