# CMake install instructions

## Requirements

All: fluidsynth and its development packages
Windows: vcpkg (recommended)

## Build

Note: This is mostly a copy of `.github/workflows/`. If in doubt,
      look there.

### Linux or MacOS

```sh
mkdir build && cd $_
cmake ..
make
make install
```

The typical `cmake` options apply, e.g.

```sh
cmake -DCMAKE_INSTALL_PREFIX=$PWD/../install ..
cmake -DCMAKE_BUILD_TYPE=Debug ..
```

### Windows

```
cmake -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake .
cmake --build .
```

