Dear all, while trying to implement what I proposed here I found out that C::B has it already implemented! It's simply not documented. What I did:
1.) Added a new tool (cb_console_runner) with the following settings:
- Parameter: $(RELEASE_OUTPUT_FILE)
- Working dir: $(RELEASE_OUTPUT_DIR)
- Option: Launch tool visible (without output redirection)
2.) Switched to the console project(s) I have that I want to compare and simply run the tool.
Notice the macros "FOO_OUTPUT_FILE" and "BAR_OUTPUT_DIR" where "FOO" and "BAR" have to be replaced by the active project's target name to access this targets output file/dir. In my case all tools have the same targets: "Debug" and "Release". So I select "RELEASE" to access the current project's "Release" target.
Now I can do what I want: I compile the "ToolA" project, run the console_runner "detached" by calling the tool. An external console opens with "ToolA". Then I switch to the next project and do the same (compilation & run the tool). A second console opens with "ToolB".... and so on...
Zero code change and all works perfect - exactly as I had in mind. This rocks!
With regards, Morten.
Edit: Too fast with words - I missed that if I try to lauch the second tool I now get a C::B error: "Another tool is currently executing. Please allow for it to finish before launching another tool..." :-(