To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
The primary repository for this project is hosted at https://github.com/sonic-visualiser/sv-dependency-builds .
This repository is a read-only copy which is updated automatically every hour.
root / src / portaudio_20161030_catalina_patch / doc / src / tutorial / compile_cmake.dox @ 162:d43aab368df9
History | View | Annotate | Download (1.8 KB)
| 1 |
/** @page compile_cmake Creating MSVC Build Files via CMake |
|---|---|
| 2 |
@ingroup tutorial |
| 3 |
|
| 4 |
This is a simple "How-to" for creating build files for Microsoft Visual C++ via CMake and the CMakeLists.txt file |
| 5 |
|
| 6 |
1. Install CMake if you haven't got it already ([http://www.cmake.org], minimum version required is 2.8). |
| 7 |
|
| 8 |
2. If you want ASIO support you need to D/L the ASIO2 SDK from Steinberg, and place it according to \ref compile_windows_asio_msvc |
| 9 |
|
| 10 |
3. Run the CMake GUI application and browse to <b>source files</b> directory and <b>build</b> directory: |
| 11 |
a. The <b>source files</b> directory (<i>"Where is the source code"</i>) is where the portaudio CMakeLists.txt file is located. |
| 12 |
b. The <b>build</b> directory (<i>"Where to build the binaries"</i>) is pretty much anywhere you like. A common practice though is to have the build directory located <b>outside</b> the |
| 13 |
source files tree (a so called "out-of-source build") |
| 14 |
|
| 15 |
4. Click <i>Configure</i>. This will prompt you to select which build files to generate. <b>Note</b> Only Microsoft Visual C++ build files currently supported! |
| 16 |
|
| 17 |
5. In the CMake option list, enable the PORTAUDIO_xxx options you need, then click <i>Configure</i> again (Note that after this there are no options marked with red color) |
| 18 |
|
| 19 |
6. Click <i>Generate</i> and you'll now (hopefully) have your VS build files in your previously defined <b>build</b> directory. |
| 20 |
|
| 21 |
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. |
| 22 |
|
| 23 |
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) |
| 24 |
|
| 25 |
--- Robert Bielik |
| 26 |
|
| 27 |
Back to the Tutorial: \ref tutorial_start |
| 28 |
|
| 29 |
*/ |