[CMake] Newbie questions; dual targeting, unit test support, cross-compilation

BELLUS Stefan Stefan.Bellus at frequentis.com
Wed Sep 19 02:44:55 EDT 2012


Nice example, good job.
I'm trying mostly the same.

I don't understand why you want to run test on target platform. I guess (because tests are platform independent) it is ok to run tests only on host. Or I miss something?

CppUTest supports also memory leaks detection. When you include (#include <CppUTest/MemoryLeakDetectorNewMacros.h>
#include <CppUTest/MemoryLeakDetectorMallocMacros.h>) in each compiled file you will get also name of file and line that cause memory leak.

But when you build for target you have not to include those files.
Can this be implemented in cmake by Configuration/BuildType?



More information about the CMake mailing list