This is a unofficial CMake template for building custom FL Studio plugins ("FL" plugins), using FL Studio SDK.
This project is intended to be used on Windows, using a Visual Studio compiler.
It is recommended to use a CMake-based IDE (CLion, a properly configured VSCode...) to handle and edit the project.
In Project Root Directory:
SDK
folder contains the FL Studio SDK with some slight modifications and the CMakeLists.txt. The SDK gets built as a library and linked against the Plugin(s). The subdirectorySDK/SDK_documentation
contains the documentation as provided by the SDK.Examples
folder contains the 4 example projects (FruityGain_VC, Saw_VC and others) provided by the SDK. Each one is built as a separate CMake project, and can be enabled in the root CMakeLists.txt. The source files contain some debug and small changes. They could contain some bugs still.Plugin
folder contains the plugin project template. Edit and add files there to build your project.CMakeLists.txt
is the "root" Cmake. This project shall be built from there.
- Set the project name if necessary. Notice that this is only an "aestetic" choice, since the plugin will not have this name.
- lines
8
and11
: Set the Installation paths (${FL_INSTALL_GENERATORS_PATH} and ${FL_INSTALL_EFFECTS_PATH}): projects will be saved there. - From line
17
: If needed, set the paths for your Compilers and generators. It's a better idea to let these lines commented, and let the IDE handle them (if you are using one). - If needed, add subdirectories by uncommenting them.
- line
2
: set the project name according to the desired plugin Name. Notice that all the generated files and installation process will take that as the Plugin name. On installation, the dll will have <project_name>_x64.dll as a name. - Lines
8
,10
,12
: change variables. - line
30
: add source files you include for your plugin. Do not include SDK files, they are automatically being built! - line
38
: link other libraries if needed
From the project root folder:
- Generate Makefiles inside a build directory
cmake -B build
- Enter Build folder
cd build
- Build
cmake --build . --config Release