Skip to content

Commit 0a1d916

Browse files
committed
Refactor 4
1 parent b8461bf commit 0a1d916

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+5440
-6037
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@ find_package(Vulkan REQUIRED)
2525
# Import third-party libraries through vcpkg
2626
find_package(glfw3 CONFIG REQUIRED)
2727
find_package(glm CONFIG REQUIRED)
28+
find_package(Stb REQUIRED)
2829

2930
# Add executable program targets
3031
add_executable(${PROJECT_NAME} src/main.cpp)
3132

3233
target_link_libraries(${PROJECT_NAME} PRIVATE Vulkan::Vulkan )
3334
target_link_libraries(${PROJECT_NAME} PRIVATE glm::glm )
3435
target_link_libraries(${PROJECT_NAME} PRIVATE glfw )
36+
target_include_directories(${PROJECT_NAME} PRIVATE ${Stb_INCLUDE_DIR})
3537
#################################################################################
3638

3739
#################################################################################

docs/codes/02/00_vertexinput/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 4.0.0)
22

33
#################################################################################
4-
#### Set up the vcpkg toolchain, which must be done before the project() function.
4+
#### Set up the vcpkg toolchain, which must be done before the project() function.
55
# You can also set it up by default through the CMakePresets.json file
66
# requires the VCPKG_ROOT environment variable
77
# The TO_CMAKE_PATH here is used to convert back slashes to forward slashes
@@ -11,10 +11,10 @@ set(CMAKE_TOOLCHAIN_FILE "${VCPKG_CMAKE_PATH}/scripts/buildsystems/vcpkg.cmake")
1111

1212
project(HelloVulkan LANGUAGES CXX)
1313

14-
set(CMAKE_CXX_STANDARD 20)
14+
set(CMAKE_CXX_STANDARD 23)
1515

1616
#################################################################################
17-
#### Search for Vulkan package.
17+
#### Search for Vulkan package.
1818
# CMake provides FindVulkan support, but requires the VULKAN_SDK environment variable
1919
# Setting by default during Vulkan SDK installation, such as E: \ Vulkan \ 1.4.309.0
2020
find_package(Vulkan REQUIRED)
@@ -35,6 +35,6 @@ target_link_libraries(${PROJECT_NAME} PRIVATE glfw )
3535
#################################################################################
3636

3737
#################################################################################
38-
#### shaders
38+
#### shader compilation
3939
add_subdirectory(shaders)
4040
#################################################################################

0 commit comments

Comments
 (0)