Use cmake macros instead of functions in GenerateRTTROSCommPackage.cmake.em

`orocos_generate_package()` only considers the current scope for targets to be added to the pkg-config file. With the current version using cmake functions the resulting .pc files do not contain the generated libraries, which results in linker errors in dependent packages.