This repository only includes the C++ source and header files. Therefore, to actually run the projects on different platforms, you need to link the libraries after cloning following the Vulkan tutorial.
This project also uses Dear ImGui. You need to clone the repository and check out to the docking
branch. Then you need to go to the imgui
project and add the following files to Source Files
:
imgui.cpp
imgui_draw.cpp
imgui_widgets.cpp
imgui_tables.cpp
imgui_demo.cpp
imgui_impl_glfw.cpp
imgui_impl_vulkan.cpp
and turn off pre‑compiled headers for the ImGui files (if you use PCH) by:
- Select all ImGui .cpp files.
- Right-click and select
Properties
. - In the
C/C++
section, selectPrecompiled Headers
. - Set
Precompiled Header
toNot Using Precompiled Headers
.
Once you are done, you can simply build the project to generate the static library. You might need to link the vulkan and GLFW libraries to the project as well. The generated library will be located in either the Debug
or Release
folder, depending on the configuration you are using. You can then proceed to the main project and:
- Right-click on the project and select
Properties
. - In the
C/C++
section, selectAdditional Include Directories
. - Add the path to the
imgui
folder. - In the
Linker
section, selectAdditional Library Directories
. - Add
$(SolutionDir)$(Platform)\$(Configuration)\
or where your static library file is located. - In the
Linker
section, selectInput
. - Add
imgui.lib
to theAdditional Dependencies
field.
You'll need to create an empty project in Visual Studio and add the source and header files to the project. Then, you just need to follow the link provided above.
For reference, this is my C/C++
-> Additional Include Directories
from src
's project properties:
and this is my
Linker
-> Additional Library Directories
:
Currently not supported.
Currently not supported.