Installation¶
Build requirements¶
C++17-capable compiler.
C compiler for C examples and C consumers.
makeor CMake 3.16 or newer.Python and Sphinx only when building this documentation site.
Build with Make¶
make
make test
The default build writes libraries and examples to build/.
Build with CMake¶
cmake -S . -B build-cmake
cmake --build build-cmake
ctest --test-dir build-cmake --output-on-failure
Install¶
sudo make install PREFIX=/usr/local
For packaging, stage the install:
make install DESTDIR=/tmp/bfft-package PREFIX=/usr
Package discovery¶
With pkg-config:
cc app.c $(pkg-config --cflags --libs bfft)
With CMake:
find_package(BFFT CONFIG REQUIRED)
add_executable(app app.cpp)
target_link_libraries(app PRIVATE bfft::static)
Use bfft::shared when the shared target was built and installed by CMake.