QMake - How to add and use a variable into the .pro file

后端 未结 2 1574
感动是毒
感动是毒 2020-11-30 20:10

I have a qmake file generated by Qt creator. I am modifying it but I do not manage to understand how to create a variable.

For example, I want to declare the library

2条回答
  •  北荒
    北荒 (楼主)
    2020-11-30 21:01

    Other useful variable type: $$[...] This means "configuration option that were set when Qt was built"

    Example:

    message($$[QT_INSTALL_BINS])
    

    This gives:

    C:\Qt\Qt5.0.2\5.0.2\msvc2010_opengl\bin
    

提交回复
热议问题