Executing commands on Visual Studio 2022
It appears that you are using Visual Studio.
Your Linux build/run is creating a library and two executables.
This means that you will need to create three projects, one for the library and one for each executable.
However, note that MS VS can have only one startup project (executable).
IIF you desire to build and run the two executables in one shot, then add a post-build event that runs a command script (aka batch file) to run the two executables (one after the other).
Or, more cumbersome, set the startup project to the first executable, perform a run, set the startup project to the second executable, perform the run. (you would likely do this while debugging).
Note, if you make each executable project dependent on the library project, you need not explicitly specify the library as an input to your link phase of each executable.
Jim Dempsey
Read more here: Source link
