<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.3.1"/> <title>PortAudio: Creating MSVC Build Files via CMake</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">PortAudio  <span id="projectnumber">2.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.3.1 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li class="current"><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">Creating MSVC Build Files via CMake </div> </div> </div><!--header--> <div class="contents"> <div class="textblock"><p>This is a simple "How-to" for creating build files for Microsoft Visual C++ via CMake and the CMakeLists.txt file</p> <ol type="1"> <li>Install CMake if you haven't got it already ([<a href="http://www.cmake.org">http://www.cmake.org</a>], minimum version required is 2.8).</li> </ol> <ol type="1"> <li>If you want ASIO support you need to D/L the ASIO2 SDK from Steinberg, and place it according to <a class="el" href="compile_windows_asio_msvc.html">Building Portaudio for Windows with ASIO support using MSVC</a></li> </ol> <ol type="1"> <li>Run the CMake GUI application and browse to <b>source files</b> directory and <b>build</b> directory: a. The <b>source files</b> directory (<em>"Where is the source code"</em>) is where the portaudio CMakeLists.txt file is located. b. The <b>build</b> directory (<em>"Where to build the binaries"</em>) is pretty much anywhere you like. A common practice though is to have the build directory located <b>outside</b> the source files tree (a so called "out-of-source build")</li> </ol> <ol type="1"> <li>Click <em>Configure</em>. This will prompt you to select which build files to generate. <b>Note</b> Only Microsoft Visual C++ build files currently supported!</li> </ol> <ol type="1"> <li>In the CMake option list, enable the PORTAUDIO_xxx options you need, then click <em>Configure</em> again (Note that after this there are no options marked with red color)</li> </ol> <ol type="1"> <li>Click <em>Generate</em> and you'll now (hopefully) have your VS build files in your previously defined <b>build</b> directory.</li> </ol> <p>Both ASIO and DirectX SDK are automatically searched for by the CMake script, so if you have DirectX SDK installed and have placed the ASIO2 SDK according to point 2 above, you should be able to build portaudio with !DirectSound and ASIO support.</p> <p>Should you later on decide to change a portaudio option, just jump in at step 5 above (MSVC will then prompt you to reload projects/solutions/workspace)</p> <p>— Robert Bielik</p> <p>Back to the Tutorial: <a class="el" href="tutorial_start.html">PortAudio Tutorials</a> </p> </div></div><!-- contents --> <hr size="1"><address style="text-align: right;"><small>Generated for PortAudio by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a>1.8.3.1</small></address> </body> </html>