[CMake] Adding to RUN_TESTS target

David Cole david.cole at kitware.com
Wed Oct 24 19:15:26 EDT 2012


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