Closed Adding files to .pro dependent upon Qt Version
General and Desktop
5
Posts
2
Posters
1.8k
Views
1
Watching
-
I have a code base that includes several project files based on Mac / Linux / Windows target, one of these is to generate an OpenGL 3.2 context under Mac.
Now we have Qt 5 I don't need this file and want to exclude it when building for Qt5 however I would like to still keep the project so I can build for Qt 4.x How would I approach this in qmake?
I have tried this
contains($$[QT_VERSION],"4.")
{
OBJECTIVE_SOURCES += $$SRC_DIR/setGL32VisualMac.mm
}But it doesn't seem to work when using Qt5 and it still includes the file, does anyone have any ideas how I can exclude a file based on Qt Version?