CMake: Try to correctly determine the gresource deps