Improvements in CMake package config generation.
Added an input variable to choose the target libraries to exclude from
the exported list.
Fixed extraction of library names from target properties.