Skip to content

Commit 19a620b

Browse files
Enhance root CMakeLists.txt with additional build instructions and comments for clarity
1 parent d8640f4 commit 19a620b

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@ cmake_minimum_required (VERSION 3.29)
33
project (VulkanTutorialRoot)
44
# This is to allow the CMakeLists.txt files in attachments/ to be accessed from root level
55
# Use command: cmake -S . -B build to configure from root level
6+
# Then use command: cmake --build build to build from root level
7+
# This will generate the build files in the build/ directory
8+
# The build files will reference the source files in the attachments/ directory
9+
# No need to change or delete any lines in attachments/ CMakeLists.txt files
10+
# You can still build from attachments/ directory if needed
11+
# Just navigate to attachments/ and run cmake and build commands as usual
612
add_subdirectory(attachments)
713

8-
# Any other subdirectories can be added here
14+
# Any other subdirectories can be added here
15+
# Need to be carefull using CMAKE_SOURCE_DIR is points to the root level CMakeLists.txt
16+
# Use CMAKE_CURRENT_SOURCE_DIR to point to the current directory instead
17+
# For Simple Vulkan Engine project please uncomment the following line
18+
# add_subdirectory(attachments/simple_engine)

0 commit comments

Comments
 (0)