forked from ElucidataInc/ElMaven
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.pro
28 lines (23 loc) · 971 Bytes
/
build.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
macx {
compiler_version = $$system( clang -v 2>&1 | head -n1 | ggrep -Po "[0-9\.]+" | head -n1 | ggrep -Po "[0-9]+" | head -n1 )
message("compiler major version $$compiler_version")
if(greaterThan(compiler_version, 5):lessThan(compiler_version, 7)) {
message("Clang Version : $$system( clang -v 2>&1 | head -n1 )")
}
else {
warning("Make sure you have installed clang using brew and are not using clang that comes along with XCode.")
warning("If you have installed clang using brew, please make sure it's added correctly in the PATH variable")
message("exiting now")
error("Compiler not found")
}
}
win32 {
#package 'mingw-w64-x86_64-curl' is required by libnetcdf.
CONFIG += link_pkgconfig
PKGCONFIG = libcurl
}
include($$mac_compiler)
TEMPLATE = subdirs
CONFIG += ordered qt thread
SUBDIRS += 3rdparty crashhandler src tests/MavenTests
equals(NOTESTS, "yes"): SUBDIRS-=tests/MavenTests