→ If there is any change in source code ( not Resouces folder ) → all files in the Resouces folder will copy to the build folder. It’s quite a waste of my time because in the Resources folder I have a lot of files ( images, audios, fonts .etc…)
→ Now, I just want to copy the Resources folder to build a folder when the Resouces folder has changed files! Can someone help me rewrite this cmake ?
There is a solution that would save you a lot of time here. Instead of copying the resources, it just creates a symbolic link to the resources folder, so it’s instant.
If the Resource folder already exists in the build output folder, you’ll have issues. Did you do a clean build first? Check the D:/apps/b2/bin/TestApp/Debug/ path and make sure there is no Resources folder already in there, and if there is, delete it.
I can’t think of any other reason for that error at the moment.
You shouldn’t need to run VS in admin mode, and it’s probably not a good idea to do so. If you have to do that it may mean that the permissions on the build output folder are probably not correct.