| 418 | } |
| 419 | |
| 420 | std::string cmQtAutoGenerator::MessagePath(cm::string_view path) const |
| 421 | { |
| 422 | std::string res; |
| 423 | if (cmHasPrefix(path, this->ProjectDirs().Source)) { |
| 424 | res = cmStrCat("SRC:", path.substr(this->ProjectDirs().Source.size())); |
| 425 | } else if (cmHasPrefix(path, this->ProjectDirs().Binary)) { |
| 426 | res = cmStrCat("BIN:", path.substr(this->ProjectDirs().Binary.size())); |
| 427 | } else { |
| 428 | res = std::string(path); |
| 429 | } |
| 430 | return cmQtAutoGen::Quoted(res); |
| 431 | } |
| 432 | |
| 433 | bool cmQtAutoGenerator::Run(cm::string_view infoFile, cm::string_view config, |
| 434 | cm::string_view executableConfig) |