Global #define in Qt project. How?
-
Hello!
Got totally forgotten how to #define SOME_VALUE globally in Qt. Need to check this define in different header files and CPP files. Is there any way to make make it possible globally without adding to every header file in project? Qt Creator project settings? Or in *.pro file?
-
Solution found. Issue closed.
In *.pro file:DEFINES += SOME_VALUEHere full explanation https://stackoverflow.com/questions/3348711/add-a-define-to-qmake-with-a-value
-
B bogong has marked this topic as solved on