Build KISS FFT with Make or CMake
masterKISS FFT supports both Make and CMake build systems. You can configure the principal datatype, enable OpenMP, and choose between static or shared libraries.
Configuration Options
| Option (Make) | Option (CMake) | Description |
|---|---|---|
KISSFFT_DATATYPE | -DKISSFFT_DATATYPE | Data type: float (default), double, int16_t, int32_t, or simd (requires SSE) |
KISSFFT_OPENMP | -DKISSFFT_OPENMP | Enable OpenMP support (set to 1 or ON) |
KISSFFT_STATIC | -DKISSFFT_STATIC | Build a static library (1/ON) instead of a shared library |
KISSFFT_TOOLS | -DKISSFFT_TOOLS | Build command-line tools (default is enabled; set to 0 or OFF to disable) |
KISSFFT_USE_ALLOCA | -DKISSFFT_USE_ALLOCA | Use alloca instead of malloc/free |
PREFIX | -DCMAKE_INSTALL_PREFIX | Installation prefix directory |
Build Examples
Using Make (Static library, int16_t, OpenMP):
make KISSFFT_DATATYPE=int16_t KISSFFT_STATIC=1 KISSFFT_OPENMP=1 allUsing CMake (Static library, int16_t, OpenMP):
mkdir build && cd build
cmake -DKISSFFT_DATATYPE=int16_t -DKISSFFT_STATIC=ON -DKISSFFT_OPENMP=ON ..
make all