I've got this simplified folders structure for c++ project named project_name.
project_name
-build
-headers
-sources
-resources
If I do cl /EHsc /W4 sources/source1.cpp sources/source2.cpp /link /out:project_name ...
it creates build files in current directory only which is project_name, resulting this:
project_name
-build
-headers
-sources
-resources
project_name.exe
source1.obj
source2.obj
etc
What I want is to specify the folder where all the build files have to be placed, in my case in a build
folder.
What options are needed for cl
or link
to do that that from project_name
directory ?