diff --git a/apps/openmw/CMakeLists.txt b/apps/openmw/CMakeLists.txt index ddb08f0b0..501e5c5ae 100644 --- a/apps/openmw/CMakeLists.txt +++ b/apps/openmw/CMakeLists.txt @@ -112,6 +112,7 @@ target_link_libraries(openmw ${BULLET_LIBRARIES} ${MYGUI_LIBRARIES} ${SDL2_LIBRARY} + ${SDL2MAIN_LIBRARY} ${MYGUI_PLATFORM_LIBRARIES} ${SHINY_LIBRARIES} "oics" diff --git a/apps/openmw/main.cpp b/apps/openmw/main.cpp index a68c89683..f11d153b4 100644 --- a/apps/openmw/main.cpp +++ b/apps/openmw/main.cpp @@ -2,6 +2,7 @@ #include +#include #include "engine.hpp" #if defined(_WIN32) && !defined(_CONSOLE)