Skip to content

Commit

Permalink
Update CMakeLists.txt for WIN32
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmcwatters committed Jul 28, 2023
1 parent 0053580 commit e0709e2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set(SOURCES
src/filesystem_physfs.c
src/framework.c
src/graphics_vulkan.cpp
src/main.c
src/main_sdl.c
src/timer_sdl.c
src/vk_mem_alloc.cpp
src/window_sdl.c
Expand Down Expand Up @@ -41,6 +41,7 @@ set(PHYSFS_BUILD_DOCS FALSE CACHE BOOL "Build doxygen based documentation")
add_subdirectory(lib/physfs-release-3.2.0)

# add the SDL2 library
target_compile_definitions(game PUBLIC SDL_MAIN_AVAILABLE)
find_package(SDL2 2.28.1 EXACT REQUIRED PATHS lib)

# add the volk library
Expand Down Expand Up @@ -86,7 +87,9 @@ endif()
# add the Vulkan Memory Allocator library
set(VMA_STATIC_VULKAN_FUNCTIONS OFF CACHE BOOL "Link statically with Vulkan API")
add_subdirectory(lib/VulkanMemoryAllocator-3.0.1)
target_compile_options(VulkanMemoryAllocator PUBLIC -Wno-nullability-completeness)
if (APPLE)
target_compile_options(VulkanMemoryAllocator PUBLIC -Wno-nullability-completeness)
endif()

# add the GLM library
find_package(glm REQUIRED PATHS lib/glm/cmake)
Expand Down

0 comments on commit e0709e2

Please sign in to comment.