From 3068ce1e68f6141a64035746464ccc863ecf92b4 Mon Sep 17 00:00:00 2001 From: CharlesThobe Date: Thu, 6 Jan 2022 06:15:17 +0200 Subject: [PATCH] add "sdl_cfg.lua" windows definition to libocore --- cmake_subdirs/ocore_sdl/CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cmake_subdirs/ocore_sdl/CMakeLists.txt b/cmake_subdirs/ocore_sdl/CMakeLists.txt index 1269f47..0eb8027 100644 --- a/cmake_subdirs/ocore_sdl/CMakeLists.txt +++ b/cmake_subdirs/ocore_sdl/CMakeLists.txt @@ -1,4 +1,16 @@ #ocore_sdl + +#dofile("sdl_cfg.lua") +if(WIN32) +add_compile_definitions( + UNICODE + _UNICODE + _WIN32_WINNT=0x0501 + WIN32_LEAN_AND_MEAN + NOMINMAX +) +endif() + include_directories( ${CMAKE_SOURCE_DIR}/src/emu ${CMAKE_SOURCE_DIR}/src/osd