You'll have to put those settings into your makefile or qmake project.
production {
DEFINES += PRODUCTION
LIBS += -lproductionlib
}
else:release {
DEFINES += RELEASE
LIBS += -lreleaselib
}
production {
DEFINES += PRODUCTION
LIBS += -lproductionlib
}
else:release {
DEFINES += RELEASE
LIBS += -lreleaselib
}
To copy to clipboard, switch view to plain text mode
then when you call
qmake -config production
qmake -config production
To copy to clipboard, switch view to plain text mode
your code will be linked against the productionlib library and with
qmake -config release
qmake -config release
To copy to clipboard, switch view to plain text mode
it will be linked against the releaselib library.
Of course you can do more or less the same using the automake tools and probably also with CMake.
Bookmarks