title: Cmake very simple set failure
body: <p>I trying to start using cmake with the simplest helloworld example, in ubuntu 12.04, cmake 2.8.7.  First I tried the one from:</p>
  
  <p><a href="http://www.elpauer.org/stuff/learning_cmake.pdf" rel="nofollow">http://www.elpauer.org/stuff/learning_cmake.pdf</a></p>
  
  <pre><code>project( helloworld )
  set( SRCFILES helloWorld.cpp )
  add_executable( helloWorld ${SRCFILES} )
  </code></pre>
  
  <p>I have only a source file called "helloWorld.cpp" by the side of the CMakeLists.txt.  I created a directory called "configure", went inside and called "cmake ..".  I get the following:</p>
  
  <pre><code>-- The C compiler identification is GNU
  -- The CXX compiler identification is GNU
  -- Check for working C compiler: /usr/bin/gcc
  -- Check for working C compiler: /usr/bin/gcc -- works
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working CXX compiler: /usr/bin/c++
  -- Check for working CXX compiler: /usr/bin/c++ -- works
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  CMake Error at CMakeLists.txt:3 (add_executable):
    add_executable called with incorrect number of arguments
  
  
  -- Configuring incomplete, errors occurred!
  </code></pre>
  
  <p>Trying to figure out what wrong I got all the following changes:</p>
  
  <pre><code>project( helloworld )
  set( SRCFILES helloWorld.cpp )
  message ( "src ${SRCFILES}" )
  set(x helloWorld.cpp)
  set(y 2)
  message(${x}${y})
  message(${x}${y})
  message(${SRCFILES})
  
  add_executable( helloWorld ${SRCFILES} )
  add_executable( helloWorld ${x} )
  add_executable( helloWorld helloWorld.cpp )
  </code></pre>
  
  <p>The results again finish with:</p>
  
  <pre><code>...
  -- Detecting CXX compiler ABI info - done
  src 
  helloWorld.cpp2
  helloWorld.cpp2
  CMake Error at CMakeLists.txt:8 (message):
    message called with incorrect number of arguments
  
  
  CMake Error at CMakeLists.txt:10 (add_executable):
    add_executable called with incorrect number of arguments
  
  
  CMake Error at CMakeLists.txt:11 (add_executable):
    add_executable called with incorrect number of arguments
  
  
  CMake Error at CMakeLists.txt:12 (add_executable):
    add_executable called with incorrect number of arguments
  
  
  -- Configuring incomplete, errors occurred!
  </code></pre>
  
  <p>Finally, the trivial</p>
  
  <pre><code>project( helloworld )
  add_executable( helloWorld helloWorld.cpp )
  </code></pre>
  
  <p>Fails with:</p>
  
  <pre><code>...
  -- Detecting CXX compiler ABI info - done
  CMake Error at CMakeLists.txt:2 (add_executable):
    add_executable called with incorrect number of arguments
  
  
  -- Configuring incomplete, errors occurred!
  </code></pre>
  
  <p>Before each trial I remove all files within compile.  I just can't figure out what is missing and why the variable is set.. not set... useless?</p>
  
  <p>Thank you very much for your help.</p>