[cmake] Rewrite FindCUPS module
Carefully following the tutorial: https://cmake.org/cmake/help/v3.23/manual/cmake-developer.7.html#find-modules
Carefully following the tutorial: https://cmake.org/cmake/help/v3.23/manual/cmake-developer.7.html#find-modules