Sven Laur
Sven Laur

Reputation: 41

qmake and Qt installation root directory

How could I refer to Qt installation root directory available in shell as qmake -v. Is there a special qmake variable or a way to store the outcome of qmake -v in a variable.

Upvotes: 2

Views: 709

Answers (1)

Sven Laur
Sven Laur

Reputation: 41

Documentation Configuring qmake hints about the existence of several configuration variables of type QT_INSTALL_XXX. The right variable that specifies the root location of Qt installation is QT_INSTALL_PREFIX. The proper way to access this form qmake file is $$[QT_INSTALL_PREFIX].

Upvotes: 1

Related Questions