Skip to content
Snippets Groups Projects
Commit 410a2252 authored by n0F4x's avatar n0F4x
Browse files

Update CMake

parent 5fb1d244
Branches
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ project(renderer C CXX)
add_executable(${PROJECT_NAME})
option(engine_debug "Turn on debug mode" ON)
option(renderer_debug "Turn on debug mode" ON)
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_20)
......@@ -33,7 +33,6 @@ endif ()
target_precompile_headers(${PROJECT_NAME} PRIVATE
<algorithm>
<concepts>
<expected>
<fstream>
<functional>
<iostream>
......@@ -63,9 +62,10 @@ target_compile_definitions(${PROJECT_NAME} PRIVATE
VULKAN_HPP_NO_SETTERS
VULKAN_HPP_NO_SPACESHIP_OPERATOR
)
if (engine_debug)
target_compile_definitions(${PROJECT_NAME} PRIVATE ENGINE_VULKAN_DEBUG)
if (renderer_debug)
target_compile_definitions(${PROJECT_NAME} PRIVATE RENDERER_VULKAN_DEBUG)
endif ()
target_precompile_headers(${PROJECT_NAME} PRIVATE <vulkan/vulkan.hpp>)
target_link_libraries(${PROJECT_NAME} PRIVATE Vulkan::Vulkan)
# VulkanMemoryAllocator
......@@ -73,7 +73,7 @@ set(STATIC_VULKAN_FUNCTIONS 0)
set(DYNAMIC_VULKAN_FUNCTIONS 1)
FetchContent_Declare(VulkanMemoryAllocator
GIT_REPOSITORY https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
GIT_TAG 2f382df
GIT_TAG v3.1.0
GIT_PROGRESS TRUE
SYSTEM
)
......@@ -87,7 +87,7 @@ target_link_libraries(${PROJECT_NAME} PRIVATE VulkanMemoryAllocator)
# GLFW
FetchContent_Declare(GLFW
GIT_REPOSITORY https://github.com/glfw/glfw.git
GIT_TAG 3.3.9
GIT_TAG 3.4
GIT_PROGRESS TRUE
SYSTEM
)
......@@ -100,7 +100,7 @@ target_link_libraries(${PROJECT_NAME} PRIVATE glfw)
# glm
FetchContent_Declare(glm
GIT_REPOSITORY https://github.com/g-truc/glm.git
GIT_TAG 1.0.0
GIT_TAG 1.0.1
GIT_PROGRESS TRUE
SYSTEM
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment