-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhdf5.pri
57 lines (47 loc) · 1.27 KB
/
hdf5.pri
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
exists($$PWD/hdf5_paths.pri) {
include($$PWD/hdf5_paths.pri)
} else {
include($$PWD/hdf5_paths_default.pri)
}
win32 {
INCLUDEPATH += $$HDF5_INCLUDE_DIR
CONFIG(debug, debug|release) {
exists($$HDF5_LIBS_DIR/libhdf5_D.lib) {
LIBS += -L$$HDF5_LIBS_DIR \
-llibhdf5_D
exists($$HDF5_LIBS_DIR/libzlib_D.lib) {
LIBS += -llibzlib_D
}
exists($$HDF5_LIBS_DIR/libszip_D.lib) {
LIBS += -llibszip_D
}
} else {
LIBS += -L$$HDF5_LIBS_DIR \
-llibhdf5
exists($$HDF5_LIBS_DIR/libzlib.lib) {
LIBS += -llibzlib
}
exists($$HDF5_LIBS_DIR/libszip.lib) {
LIBS += -llibszip
}
}
}
CONFIG(release, debug|release) {
LIBS += -L$$HDF5_LIBS_DIR \
-llibhdf5
exists($$HDF5_LIBS_DIR/libzlib.lib) {
LIBS += -llibzlib
}
exists($$HDF5_LIBS_DIR/libszip.lib) {
LIBS += -llibszip
}
}
}
unix {
QMAKE_LFLAGS += -Wl,-rpath,$$HDF5_LIBS_DIR
INCLUDEPATH += $$HDF5_INCLUDE_DIR
LIBS += -L$$HDF5_LIBS_DIR \
-lhdf5_serial \
-lz \
-ldl \
}