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})