Build and Run: How to conveniently set the executable path? #876
Replies: 1 comment 1 reply
-
|
Not possible with the current current custom variables. Probably adding a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I use CMake and Meson. Executables are placed in the build directory, organized according to the source directory structure. For example, for
src/Foo/bar.m, the corresponding executable isbuild/src/Foo/bar.exe. I have dozens of single‑source programs like this.A simple trick can be employed: take the full path to the source file (e.g.,
src/Foo/bar.m), transform it intobuild/src/Foo/bar.m, remove the file extension (.min this case), and append.exe. This gives the working path:build/src/Foo/bar.exe.But how can this be implemented on my end with the existing capabilities of Build and Run?
Beta Was this translation helpful? Give feedback.
All reactions