Hm. You actually could do a proper test - invoke “make install DESTDIR=tmp”, then set pkg-config to “pkg-config --define-variable=prefix=/where/we/are/tmp/” and set PKG_CONFIG_PATH appropriately.
CMake would then nicely strip the rpath from the libraries, and you'd be testing the .pc files as-installed.
Hm. You actually could do a proper test - invoke “make install DESTDIR=tmp”, then set pkg-config to “pkg-config --define- variable= prefix= /where/ we/are/ tmp/” and set PKG_CONFIG_PATH appropriately.
CMake would then nicely strip the rpath from the libraries, and you'd be testing the .pc files as-installed.