Make first article as separate target.
Make second article as separate target.
Make third article as separate target.
Make fourth article as separate target.
Remove main.cpp and for all target compile all articles.