Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
こんにちは、COMMON_SRC という名前のディレクトリにいくつかのファイルがあり、これらの src ファイルの .pri ファイルがあります。Common.pri と、共通ファイルへの異なる相対パスにある 2 つのプロジェクトです。Common.pri ファイルを 1 つだけ使用したい。誰でも私を助けることができますか?Common.pri ファイルにプロジェクトへの相対パスを伝える変数を各 .pro ファイルで使用できますか? $$PWDのようなもの?
_PRO_FILE_PWD_あなたが望むものです(docs)。
_PRO_FILE_PWD_