Make OpenMW able to initialize SDL in windows builds

This commit is contained in:
Alexander "Ace" Olofsson 2013-06-25 15:05:10 +02:00
parent d75391de8e
commit 0a2ed8b0d7
2 changed files with 2 additions and 0 deletions

View File

@ -112,6 +112,7 @@ target_link_libraries(openmw
${BULLET_LIBRARIES} ${BULLET_LIBRARIES}
${MYGUI_LIBRARIES} ${MYGUI_LIBRARIES}
${SDL2_LIBRARY} ${SDL2_LIBRARY}
${SDL2MAIN_LIBRARY}
${MYGUI_PLATFORM_LIBRARIES} ${MYGUI_PLATFORM_LIBRARIES}
${SHINY_LIBRARIES} ${SHINY_LIBRARIES}
"oics" "oics"

View File

@ -2,6 +2,7 @@
#include <components/files/configurationmanager.hpp> #include <components/files/configurationmanager.hpp>
#include <SDL_main.h>
#include "engine.hpp" #include "engine.hpp"
#if defined(_WIN32) && !defined(_CONSOLE) #if defined(_WIN32) && !defined(_CONSOLE)