Fix Windows compilation

This commit is contained in:
Simone Coco
2024-05-17 12:07:04 +02:00
parent 77e04afc0c
commit 2a0f43f7d6
2 changed files with 3 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ if (HAS_SSE4_1)
add_compile_options(-msse3 -msse4.1)
endif ()
add_compile_definitions(SDL_MAIN_HANDLED)
if(${CMAKE_BUILD_TYPE} MATCHES Debug)
add_compile_definitions(VULKAN_DEBUG)
#add_compile_options(-fsanitize=address -fsanitize=undefined)

View File

@@ -4,9 +4,10 @@ project(kaizen-qt)
set(CMAKE_CXX_STANDARD 17)
find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)
find_package(SDL2 REQUIRED)
find_package(SDL2 CONFIG REQUIRED)
include_directories(
${SDL2_INCLUDE_DIRS}
.
../
../utils