I have an Eclipse project. All test files are in a single * .cpp file. The problem is that this way I get two main functions (). One for the application itself and one for the test ones. And Eclipse, of course, refuses to build ... I would like to keep everything together within the same project (and avoid multiple configurations, SVN repositories, etc.). Ideally, I would like to force Eclipse to build two executables (one for the application and one for the test files). I quickly looked at Eclipse's Makefile, but to be honest, I donβt quite understand how it works. You can always exclude Main.cpp / Testcases.cpp and create one executable file, but it is not very elegant ...
Anyone with similar experience?
source share