From 446a4939f5f6badee98dcff6529d8ea48368116c Mon Sep 17 00:00:00 2001 From: Green Sky Date: Sun, 19 May 2024 11:48:03 +0200 Subject: [PATCH] symbol visiblity and entt export --- src/CMakeLists.txt | 4 ++++ src/main.cpp | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8729dfc..af0da59 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -25,6 +25,10 @@ add_executable(totato ./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_link_libraries(totato PUBLIC solanaceae_util diff --git a/src/main.cpp b/src/main.cpp index 9d964eb..bb9e1df 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -29,6 +29,9 @@ #include +#include +#include + #include #include #include