tag:blogger.com,1999:blog-7844526396210378482.post7199172078977920582..comments2024-01-31T09:23:26.925+00:00Comments on Noel O'Blog: Using CTest with multiple tests in a single executableNoel O'Boylehttp://www.blogger.com/profile/03288289351940689018noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-7844526396210378482.post-3025027810477000572013-06-14T09:35:11.059+01:002013-06-14T09:35:11.059+01:00Thanks Marcus - I might well add some friendly nam...Thanks Marcus - I might well add some friendly names.<br /><br />As you can see, we are finally getting around to including some CMake 2.6 features. Anything else we should be thinking about?Noel O'Boylehttps://www.blogger.com/profile/03288289351940689018noreply@blogger.comtag:blogger.com,1999:blog-7844526396210378482.post-5885718176797432152013-06-13T22:22:25.670+01:002013-06-13T22:22:25.670+01:00If you take a look at the add_test documentation (...If you take a look at the add_test documentation (cmake --help-command add_test will give you that if you have CMake installed), you should prefer the new signature as that will resolve targets rather than executable names. So your add_test command would look something like,<br /><br />add_test(NAME name_to_show_up_friendly<br /> COMMAND target_name arg1_test_name)<br /><br />The test runner code is really useful, and something that can speed up project builds as it reduces the amount of linking etc that must be done.Marcus D. Hanwellhttps://www.blogger.com/profile/08187423171219662136noreply@blogger.com