Hi,
I'm new to Qt and its qmake functions. I have read through the Qt Assistant but I do not comprehend everything yet.
May I know how can we add custom DEFINES & CONFIG in the *.pro and *.pri files?
E.g.
If I need a class in Windows only, can I do a *pro file as below? However, it is not working as I expected.
Qt Code:
win32:DEFINES += WIN32_MYCLASS //(but not working also in qmake) win32:CONFIG += win32_myclass //(but not working in *.cpp during #ifdef #endif)To copy to clipboard, switch view to plain text mode
Please advice. Thanks in advance.
Bookmarks