title: call batch file from CMakeLists.txt
body: <p>My company uses different Visual Studio for different projects. VS2003,VS2008,VS2010,VS2013... So I have different VS install on my machine. I'm using cmake to manage my projects, and I use a hotkey <strong>F5</strong> to build the project, the <strong>F5</strong> is simply call <strong>nmake</strong> from the build directory. </p>
  
  <p>The problem is I need to call different <strong>vcvarsall.bat</strong> to setup the build environment first, otherwise cmake use the values from environment variable, which causes build error.</p>
  
  <p>How can I call batch files from CMakeLists.txt?</p>