Skip to content

Add CMake scripts to D3D11/D3D12 demos#808

Open
ModulePillow wants to merge 2 commits intoImmediate-Mode-UI:masterfrom
ModulePillow:IceyPillow-patch-1
Open

Add CMake scripts to D3D11/D3D12 demos#808
ModulePillow wants to merge 2 commits intoImmediate-Mode-UI:masterfrom
ModulePillow:IceyPillow-patch-1

Conversation

@ModulePillow
Copy link

This change helps other users, one command can generate a VS solution regardless of which Visual Studio IDE users have.

e.g.
cd ./demo/d3d12
cmake -S ./ -B ./cmake

@igromanru
Copy link

I don't know much about CMake. But shouldn't there be a CMakeLists.txt ?
How do I build it with Native Tools Command Prompt from VS 2022?

@ModulePillow
Copy link
Author

ModulePillow commented Feb 12, 2026

I don't know much about CMake. But shouldn't there be a CMakeLists.txt ? How do I build it with Native Tools Command Prompt from VS 2022?

VS (exactly, it's MSBuild of VS) is a build system. CMake is a management system for all build systems.

I don't know much about VS Native Command; u can create an empty VS C++ solution on the GUI, and manually put .h/.cpp into it.

That's where CMake shines; several lines of CMake scripts define a whole project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants