6a2c87dacf
--HG-- branch : develop
33 lines
842 B
Prolog
33 lines
842 B
Prolog
include(common.pri)
|
|
|
|
#Check if Qt version >= 5.0.0
|
|
!minQtVersion(5, 0, 0) {
|
|
message("Cannot build Valentina with Qt version $${QT_VERSION}.")
|
|
error("Use at least Qt 5.0.0.")
|
|
}
|
|
|
|
unix {
|
|
*-g++ {
|
|
GCC_VERSION = $$system("g++ -dumpversion")
|
|
contains(GCC_VERSION, 6.[0-9]) {
|
|
message( "g++ version 6.x found" )
|
|
CONFIG += g++6
|
|
} else {
|
|
contains(GCC_VERSION, 5.[0-9]) {
|
|
message( "g++ version 5.x found" )
|
|
CONFIG += g++5
|
|
} else {
|
|
contains(GCC_VERSION, 4.[0-9]) {
|
|
message( "g++ version 4.x found" )
|
|
CONFIG += g++4
|
|
} else {
|
|
message( "Unknown GCC configuration" )
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
TEMPLATE = subdirs
|
|
SUBDIRS = src
|