Are the .pro file settings somehow accessible from within the code?
I want to use conditional compilation but I need to know whether
testlib (or whatever)
QT += testlib
is added in the project file.
thanks in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes. If your application is compiled with the testlib,
QT_TESTLIB_LIBwill be defined.So you could to this: