Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

Closed Adding files to .pro dependent upon Qt Version

$
0
0
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?

Viewing all articles
Browse latest Browse all 18427

Trending Articles