How to fix CMake 'Could not find a package configuration file provided by "Coin" ...' on Ubuntu
Problem:
When trying to compile your CMake project, you see an error message such as
CMake Error at cMake/FreeCAD_Helpers/SetupCoin3D.cmake:13 (find_package):
Could not find a package configuration file provided by "Coin" with any of
the following names:
CoinConfig.cmake
coin-config.cmake
Add the installation prefix of "Coin" to CMAKE_PREFIX_PATH or set
"Coin_DIR" to a directory containing one of the above files. If "Coin"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
CMakeLists.txt:86 (SetupCoin3D)
Solution
sudo apt -y install libcoin-dev
Tested on Ubuntu 22.04