I have one large codebase
project in Qt
. I have been using two third party libraries: json and QSimpleUpdater. Since, these libraries are external, their source files generates alot of warnings. I can't and don't want to change those external libraries. I want to add different compiler flags for different folders.
For example, source code except external libraries should be compiled with following warnings:
QMAKE_CXXFLAGS += -Wall -Wextra -Wshadow -Wno-unused-parameter
And external libraries should be compiled with:
QMAKE_CXXFLAGS += -Wall
I tried to find answers over stackoverflow and came across this question but that question specify how to add another compiler for the project but i need just to have different warning flags for different files.