Hi,

My application has been written in such a manner that a stripped back 'lite' version can be compiled simply by not including the extra .h and .cpp files.
As far as I understand it this can be achieved in the .pro file like so:
Qt Code:
  1. CONFIG += full_version
  2.  
  3. SOURCES += core.cpp
  4. HEADERS += core.h
  5.  
  6. full_version {
  7. SOURCES += extra.cpp
  8. HEADERS += extra.h
  9. .....
  10. }
To copy to clipboard, switch view to plain text mode 
The first time I compiled and ran this I got the full application in the exe. However if I make a change to the pro file, say, comment out the Config line, effectively asking for a 'lite' version I still get the full application. I thought possibly something was getting cached somewhere so I deleted the makefile, makefile.debug, makefile.release and everything in the debug and release folders, cleaned the project, ran qmake and built the project again. But I still got the full application. I repeated this a couple of times and on the last time I got my lite version. So I uncommented the config line again and now cannot get the full version back!

I believe the code is right in the .pro file but am I missing something when making changes to it?
Thanks, C.