<div dir="ltr"><div>Dear all,<br><br></div><div>Could somebody give me some advice on how unit tests and performance tests can/should be organized? I'm quite new to cmake (and c++).<br><br>Currently, for performance tests I do:<br>    add_executable (mybenchmarks ${MYBENCHMARKS_CPP}<br></div><div>(as I don't want these to run by default)<br></div><div><br></div><div>While for unit tests I do:<br></div><div>    add_test (mytests mytests)<br></div><div>    add_executable (mytests ${MYTESTS_CPP})<br><br></div><div>I can then manually start the performance test by running the executable, and use 'make test' or 'ctest' to start the normal tests.<br><br></div><div>I wonder if I can do better, maybe there's standard support for this already?<br><br></div><div>Ideally, I think I would like to replace add_test by something like add_performance_test and then launch ctest with some special flag?<br><br></div><div>Another idea perhaps, maybe I could use a regular expression to run only the performance tests, i.e., something like *PerfTest. But could I then also run the unit tests still, i.e., everything that doesn't match *PerfTest?<br></div><div><br></div><div>Thanks,<br></div><div>Sjaak.<br></div></div>