GPUOpen-Effects / FidelityFX-CLI

FidelityFX CLI
MIT License
203 stars 21 forks source link

How to build in windows? #6

Open xiaoxiongli opened 3 years ago

xiaoxiongli commented 3 years ago

Hi Dear @rys :

it seems can use VS2019 to build this project, but I do not find the .sln file, it is only have a CMakeList.txt, so Could you please help me: How to build in windows?

thank you very much~

rys commented 3 years ago

Hi @xiaoxiongli, good question! You need to have cmake installed on your system, along with VS2019 and the Windows SDK, then you can use the following to check the code out and build it:

git clone --recursive https://github.com/GPUOpen-Effects/FidelityFX-CLI.git
cd FidelityFX-CLI
mkdir build
cd build
cmake -S .. -G "Visual Studio 16 2019" -A x64
cd ..
cmake --build build --config Release

That'll create a binary in bin\Release called FidelityFX_CLI.exe for you to use. Let me know if those steps don't work and I can help you debug it.

rys commented 3 years ago

Additionally, after the first cmake step, it will have built a solution file for you in the build directory that you can load in VS2019 yourself if you want to look at the code and make changes.