The $top_srcdir variable
General and Desktop
9
Posts
3
Posters
4.8k
Views
1
Watching
-
Which build system are you actually using?
-
The default is qmake.
So where did you see that variable? Where do you want to use it?
-
Did you read the section on variables in "the Qmake manual":http://qt-project.org/doc/qt-4.8/qmake-advanced-usage.html?
-
[quote author="Arukas" date="1336662769"]Each part of the project has its own project file, and they have the $top_srcdir pointing to the main project file.
I'd like to set those pointing to where I have my main project. [/quote]
- Create a .pri file under your top source directory.
- In this .pri file
@
common.pri
top_srcdir = $$PWD
@- inlcude the .pri into your .pro files
@
include(path/common.pri)
@ -
Sorry, I do not understand what you want to do. Where did you find top_srcdir to be a preset output variable?