Co-authored-by: Lucino772 <lucapalmi772@gmail.com>
By the way, set SOVERSION to version major. It also fixes wiringPiDev shared library version not correctly set.
Building position independant code is the default behavior for CMake when compiling shared library targets.