My code in a C++ project is organised as follows
- I have several
.cpp
and.h
files which contains my classes - I have several
.cxx
files which have to be compiled against the.cpp
files 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?
See Question&Answers more detail:os