100
My code in a C++ project is organised as follows
- I have several
.cppand.hfiles which contains my classes - I have several
.cxxfiles which have to be compiled against the.cppfiles and some external libraries.
Now, each of the .cxx files have a main() method, so I need to add a different executable for each of these files having the same name as the file.
Also, these .cxx files might not get linked to the same external libraries.
I want to write this build in CMake, in which I am kind of a newbie, how do I go about this?