title: cmake ctest post test delete file
body: <p>I have a cmake project that runs through a number of tests, i.e.</p>
  
  <pre><code>add_test(test_title executable arg1 arg2)
  </code></pre>
  
  <p>On runing these tests a number of files are produced.
  Once the test has run I would like to delete one of these files produced, i.e.</p>
  
  <pre><code>delete(${arg1}.txt)
  
      or
  
  delete(${arg2}.pdf)
  </code></pre>
  
  <p>If you could provide an example it would be very much appreciated.</p>