[CMake] Adding to RUN_TESTS target

Robert Dailey rcdailey.lists at gmail.com
Wed Oct 24 19:23:59 EDT 2012


Thanks David.

I don't mind creating a custom target for this, but I'm not sure how
to invoke CTest manually with the tests in question. What commands
would I run?

On Wed, Oct 24, 2012 at 6:15 PM, David Cole <david.cole at kitware.com> wrote:
> The ctest command that is run by RUN_TESTS is not extensible at the moment.
>
> However, you can use add_custom_target to make your own test target
> (just don't name it "test" or "RUN_TESTS"... ;-) which can do whatever
> you want.
>
>
> HTH,
> David
>
>
> On Wed, Oct 24, 2012 at 5:44 PM, Robert Dailey <rcdailey.lists at gmail.com> wrote:
>> Can I extend RUN_TESTS to execute more tests of my choosing? RUN_TESTS
>> will only execute tests defined in the directory of the project I
>> opened or below. I want to add some tests to it that are created prior
>> to that project.
>> --
>>
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list