Qt5 相关变量

message(Qt version: $$[QT_VERSION])
message(Qt is installed in $$[QT_INSTALL_PREFIX])
message(Qt resources can be found in the following locations:)
message(Documentation: $$[QT_INSTALL_DOCS])
message(Header files: $$[QT_INSTALL_HEADERS])
message(Libraries: $$[QT_INSTALL_LIBS])
message(Binary files (executables): $$[QT_INSTALL_BINS])
message(Plugins: $$[QT_INSTALL_PLUGINS])
message(Data files: $$[QT_INSTALL_DATA])
message(Translation files: $$[QT_INSTALL_TRANSLATIONS])
message(Settings: $$[QT_INSTALL_CONFIGURATION])
message(Examples: $$[QT_INSTALL_EXAMPLES])

输出

Project MESSAGE: Qt version: 5.12.7
Project MESSAGE: Qt is installed in C:/Qt/Qt5.12.7/5.12.7/msvc2017_64
Project MESSAGE: Qt resources can be found in the following locations:
Project MESSAGE: Documentation: C:/Qt/Qt5.12.7/Docs/Qt-5.12.7
Project MESSAGE: Header files: C:/Qt/Qt5.12.7/5.12.7/msvc2017_64/include
Project MESSAGE: Libraries: C:/Qt/Qt5.12.7/5.12.7/msvc2017_64/lib
Project MESSAGE: Binary files (executables): C:/Qt/Qt5.12.7/5.12.7/msvc2017_64/bin
Project MESSAGE: Plugins: C:/Qt/Qt5.12.7/5.12.7/msvc2017_64/plugins
Project MESSAGE: Data files: C:/Qt/Qt5.12.7/5.12.7/msvc2017_64
Project MESSAGE: Translation files: C:/Qt/Qt5.12.7/5.12.7/msvc2017_64/translations
Project MESSAGE: Settings:
Project MESSAGE: Examples: C:/Qt/Qt5.12.7/Examples/Qt-5.12.7

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.