|This tutorial explains how to use cmake with VST 3 SDK.|
The SDK provides a set of cmake files allowing you to compile the included samples and to develop new plug-ins.
Example for building Microsoft "Visual 2015" solution:
// go in to the folder where you extracted the VST 3 SDK mkdir build cd build cmake -G"Visual Studio 15 2017 Win64" "..\VST3_SDK" // for Visual 2017: cmake -G"Visual Studio 15 2017 Win64" "..\VST3_SDK" or for 32bit cmake -G"Visual Studio 15 2017" "..\VST3_SDK" // note: you can find the string definition for different Visual Studio Generators in the cmake online documentation
Example for building Xcode project:
// go in to the folder where you extracted the VST 3 SDK mkdir build cd build /Applications/CMake.app/Content/bin/cmake -G"Xcode" "../VST3_SDK"
You can use QtCreator 2.3.1 (or higher)
start QtCreator 2.3.2 open the CMakeLists.txt located at the top of the VST 3 SDK folder click on the menu Build->Run CMake
start the CMake (cmake-gui) application set "Where is the source code" to the location of the "VST3_SDK" folder set "Where to build the binaries" to a build folder of your choice click on "Configure" click on "Generate" for creating project/solution
Example of cmakegui application on Windows
cd build cmake --build
cmake -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ or cmake -DCMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_CXX_COMPILER=/usr/bin/g++
Additional full width section. Remove if not needed!