April 2018
Intermediate to advanced
404 pages
8h 27m
English
You can set different configurations or settings for different platforms, since not every setting can fit all use cases. For example, if we want to include different header paths for different operating systems, we can do the following:
win32:INCLUDEPATH += "C:/mylibs/extra headers" unix:INCLUDEPATH += "/home/user/extra headers"
Alternatively, you can also put your settings in curly braces which behave like the if statements in a programming language:
win32 {
SOURCES += extra_code.cpp
}