I downloaded GALib, a C++ implementation of a genetic algorithm framework, and compiled it both as a static and a dynamic library. Now I want to test my libraries with example programs supplied by GALib.
GALib comes with demo programs whose source code resides in the same directory. Since it's developed on Unix, the libraries are made via Makefile, which has no trouble with creating multiple programs. I'm very familiar with that. I'm less familiar with VS's paradigm of solutions and projects, although I think I'm starting to get a handle on it.
My "Examples" project (basically an import of the "examples" directory in the GALib distribution) has a series of files:
example1.cpp
example2.cpp
example3.cpp
...
each one is its own GA which solves some optimization problem that illustrates the different capabilities of GALib. Ideally, I would like to simply press the "Build Examples" button and have each one compile as a standalone application that compiles against the GALib static library, galib.lib.
I don't know how to do this. How can one compile a series of executables from a series of cpp files in the same project
Also, these programs were meant to be run in an xterm. How can I run an individual program from within VS and have the terminal "stay around" so that I can take a look at the output once the program is finished I assume the terminal normally goes away when the program ends.
Thanks!