Qt: passing variables to subprojects
The structure of my project is as follow: Proj Proj.pro --subProj --subProj.pro ----subsubProj ----subsubProj.pro Is there a way i can instance a global variable in subProj.pro and call it en e.g. subsubProj.pro like: Proj.pro: GLOBAL_VAR = true subsubProj.pro: message($$GLOBAL_VAR) Update Maybe I should more precise with my problem. The usual behavior in Qt Creator when you right-click on Proj and choose "Build project"Proj"" is that qmake Proj.pro gets invoked then qmake subProj.pro and then subsubProj.pro What I want to achieve is: When i build the project "Proj" only Proj.pro and subProj