title: CMake/CTest add_test command appends extra quotes to my command parameters
body: <p>In CMake I have a function:</p>
  
  <pre><code>function(add_mpi_test name no_mpi_proc)
    include_directories(...)
    add_executable(...)
    add_dependencies(...)
    target_link_libraries(...)
    # The important lines:
    set(test_parameters " -np ${no_mpi_proc} ./${name}")
    add_test(NAME ${name} COMMAND "mpirun" ${test_parameters})
  endfunction(add_mpi_test)
  </code></pre>
  
  <p>that I use to create tests like this:</p>
  
  <pre><code>add_mpi_test(mpi 4)
  </code></pre>
  
  <p>But when I run CTest I get the following error:</p>
  
  <pre><code>2: Test command: /usr/local/bin/mpirun " -np 4 ./mpi "
  2: Test timeout computed to be: 9.99988e+06
  2: [proxy:0:0@localhost] HYDU_create_process (./utils/launch/launch.c:75): execvp error on file  -np 4 ./mpi  (No such file or directory)
  </code></pre>
  
  <p>However if I run in the directory </p>
  
  <pre><code>/usr/local/bin/mpirun  -np 4 ./mpi
  </code></pre>
  
  <p>without the quotes everything works, and if I run it with the quotes</p>
  
  <pre><code>/usr/local/bin/mpirun " -np 4 ./mpi "
  </code></pre>
  
  <p>I get exactly the same error. </p>
  
  <ul>
  <li><p>Is there a way to remove these quotes?</p></li>
  <li><p>What do I have to change in the line </p>
  
  <p>add_test(NAME ${name} COMMAND "mpirun" ${test_parameters})</p></li>
  </ul>
  
  <p>to get: </p>
  
  <pre><code>2: Test command: /usr/local/bin/mpirun -np 4 ./mpi
  </code></pre>
  
  <p>without quotes?</p>
  
  <p>I've tried</p>
  
  <pre><code>add_test(NAME ${name} COMMAND "mpirun ${test_parameters}")
  </code></pre>
  
  <p>but then it says in can't find my executable.</p>