I'm making a C++ cmake project using Visual Studio 2022. And I'm using some shaders that needs to be on the same directory as the executable. I've added a line inside my cmake file that copies the files I'm editing in my development directory next to the exe so it can use it. However every time I make changes to those shader files I have to manually run the cmake file by pressing ctrl+s.
I want it so that every time I build my project (when I press the green play button of the current selected item) it copies those files next to the exe automatically. My first instinct is to write a powershell or bash script but I didn't knew how visual studio would run those scripts on build.
So I looked around the internet for solutions and found out that I can set it up on my solutions properties tab. However the problem is since this is a cmake project there are no solutions and there are no properties tab.
How can I achieve this?