Fix for #456, the ws2811.pc file's variables were blank because CMake's GNUInstallDirs needs to be included to access certain CMAKE_INSTALL_<dir> variables.
I've also fixed the version string in the file as it was just set to 0.0.0.
I've tested this out on Ubuntu Stretch with CMake 3.20.2 as well as Raspbian Stretch with CMake 3.11.1 and they are both producing the correct file that can be used with pkg-config.
Fix for #456, the
ws2811.pc
file's variables were blank because CMake's GNUInstallDirs needs to be included to access certainCMAKE_INSTALL_<dir>
variables.I've also fixed the version string in the file as it was just set to 0.0.0.
I've tested this out on Ubuntu Stretch with CMake 3.20.2 as well as Raspbian Stretch with CMake 3.11.1 and they are both producing the correct file that can be used with
pkg-config
.