title: How do I set unicode as character set in the ALL_BUILD and ZERO_CHECK Visual Studio 2013 projects that are generated by Cmake?
body: <p>I am currently using CMake to create a bunch of Visual Studio 2013 projects and it works.
  However, the automatically created ZERO_CHECK and ALL_BUILD projects are set to use MBCS by default although I want them to use the Unicode character set.</p>
  
  <p>I did specify the use of the Unicode character set for my projects with the following :</p>
  
  <pre><code>ADD_DEFINITIONS(-DUNICODE)
  ADD_DEFINITIONS(-D_UNICODE)
  </code></pre>
  
  <p>and it worked. I tried to set the c++ compiler flags with something like :</p>
  
  <pre><code>SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /UMBCS /D_UNICODE /DUNICODE")
  </code></pre>
  
  <p>or even :</p>
  
  <pre><code>ADD_DEFINITIONS(-DUNICODE)
  ADD_DEFINITIONS(-D_UNICODE)
  </code></pre>
  
  <p>before my project settings, but it did not affect ZERO_CHECK and ALL_BUILD at all.
  Any Ideas ?</p>