How do I get Visual Studio to output new files in a different directory (ideally the source directory from a out of source cmake build) -


I am in the process of adding limiter support to a project and found that, after exiting the source studio project, Visual Studio By adding new files through them, they are put in the build directory, and not in the source directory. It's subtle.

Is there a way to make a change where VS Adds new file, and can I set it in CMakeLists.txt file?

You can choose output directory for the limiter in this way:

   

Use this for Visual Studio projects: set <(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG $ {MY_DIR}) (CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE $ {MY_DIR})


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -