Update README.md (#1675)

* Update README.md

Update readme cmake commands

* Update README.md
This commit is contained in:
tom-huntington 2023-10-13 00:35:33 +13:00 committed by GitHub
parent c8cf030fe9
commit 2620a62641
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,11 +30,11 @@ To build the local samples and tests you'll have to clone this repository and ru
```git clone --recurse-submodules https://github.com/KhronosGroup/Vulkan-Hpp.git``` ```git clone --recurse-submodules https://github.com/KhronosGroup/Vulkan-Hpp.git```
2. Change the current directory to the newly created Vulkan-Hpp directory. 2. Change the current directory to the newly created Vulkan-Hpp directory.
3. Create a build environment with CMake 3. Create a build environment with CMake
```cmake -DSAMPLES_BUILD_WITH_LOCAL_VULKAN_HPP=ON -DSAMPLES_BUILD=ON -DTESTS_BUILD_WITH_LOCAL_VULKAN_HPP=ON -DTESTS_BUILD=ON -B build``` ```cmake -DVULKAN_HPP_SAMPLES_BUILD=ON -DVULKAN_HPP_SAMPLES_BUILD_WITH_LOCAL_VULKAN_HPP=ON -DVULKAN_HPP_TESTS_BUILD=ON -DVULKAN_HPP_TESTS_BUILD_WITH_LOCAL_VULKAN_HPP=ON -B build```
You might have to specify a generator via `-G`, for a full list of generators execute ```cmake -G```. You might have to specify a generator via `-G`, for a full list of generators execute ```cmake -G```.
* To rebuild `vulkan.hpp` from the `vk.xml` XML registry file, add the * To rebuild `vulkan.hpp` from the `vk.xml` XML registry file, add the
`-DVULKAN_HPP_RUN_GENERATOR=ON` option to the CMake command line. `-DVULKAN_HPP_RUN_GENERATOR=ON` option to the CMake command line.
4. Either open the generated project with an IDE, e.g. Visual Studio or launch the build process with ```cmake --build .```. 4. Either open the generated project with an IDE, e.g. Visual Studio or launch the build process with ```cmake --build build --parallel```.
Optional: To update the Vulkan-Hpp and its submodules execute ```git pull --recurse-submodules```. Optional: To update the Vulkan-Hpp and its submodules execute ```git pull --recurse-submodules```.