title: How to get debug postfix in executable name
body: <p>I am using cmake 2.8.12.2. I have set <code>CMAKE_DEBUG_POSTFIX</code>, and it is automatically used with the <code>add_library</code> command. But it is not automatically used with <code>add_executable</code> command. I have discovered that I can set the <code>DEBUG_POSTFIX</code> target property to get a debug postfix into the executable name, but this requires using an additional command.</p>
  
  <pre><code>add_executable(${PROJECT_NAME} ${SOURCE_FILES})
  set_target_properties(${PROJECT_NAME} PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX})
  </code></pre>
  
  <p>Is the second command explicitly setting the <code>DEBUG_POSTFIX</code> target property required or is there an easier way?</p>