title: CMake executable location
body: <p>I have a very simple directory structure:</p>
  
  <pre><code>Project
  Project/src
  Project/build
  </code></pre>
  
  <p>Source files are in <code>Project/src</code>, and I do the out-of-src build in <code>Project/build</code>. After running <code>cmake ../ ; make</code>, I can run the executable thusly: <code>Project/build$ src/Executable</code> - that is, the <code>Executable</code> is created in the <code>build/src</code> directory. </p>
  
  <p>How do I set the location of the executable in the <code>CMakeLists.txt</code> file? I've attempted to follow some of the examples found at <code>cmake.org</code>, but the links that work don't seem to show this behaviour. </p>
  
  <p>My <code>Project/src/CMakeLists.txt</code> file is listed here. </p>
  
  <pre><code>
  include_directories(${SBSProject_SOURCE_DIR}/src)
  link_directories(${SBSProject_BINARY_DIR}/src)
  
  set ( SBSProject_SOURCES
      main.cpp
      )
  
  add_executable( TIOBlobs ${SBSProject_SOURCES})
  </code></pre>
  
  <p>And the top-level <code>Project/CMakeLists.txt</code>:</p>
  
  <pre><code>
  cmake_minimum_required (VERSION 2.6)
  project (SBSProject)
  
  set (CMAKE_CXX_FLAGS "-g3 -Wall -O0") 
  
  add_subdirectory(src)
  </code></pre>