Is there any way to specify separate compilation options for different targets in qmake ?
For example:
QMAKE_CXXFLAGS += -O
SOURCES += file1.cpp
QMAKE_CXXFLAGS += -std=gnu++0x -O
SOURCES += file2.cpp
So file1.cpp will be compiled only with -O option and file file2.cpp with -std=gnu++0x -O options.