forked from CURG-archive/graspit_handop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
graspit-lib-WINDOWS.pro
99 lines (85 loc) · 2.82 KB
/
graspit-lib-WINDOWS.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
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Windows-specific libraries for GraspIt!. Included from graspit.pro - not for standalone use.
# ---------------------- Blas and Lapack----------------------------------------
mkl {
!exists($(MKLDIR)) {
error("MKL not installed or MKLDIR environment variable not set")
}
HEADERS += include/mkl_wrappers.h
QMAKE_LIBDIR += $(MKLDIR)/ia32/lib
LIBS += mkl_intel_c_dll.lib mkl_intel_thread_dll.lib mkl_core_dll.lib
#LIBS += libiomp5md.lib
INCLUDEPATH += $(MKLDIR)/include
DEFINES += MKL
} else : clapack {
!exists($(CLAPACKDIR)) {
error("Clapack not installed or CLAPACKDIR environment variable not set")
}
QMAKE_LIBDIR += $(CLAPACKDIR)/ia32/lib $(CLAPACKDIR)/LIB/Win32
graspitdbg {
LIBS += BLASd.lib clapackd.lib
} else {
LIBS += BLAS.lib clapack.lib
}
INCLUDEPATH += $(CLAPACKDIR)/include
HEADERS += include/lapack_wrappers.h
DEFINES += CLAPACK
} else {
HEADER += include/lapack_wrappers.h
message(Warning: no version of Blas /Lapack to link against)
}
# ---------------------- General libraries and utilities ----------------------------------
graspitdbg {
LIBS += qhull/windows/Debug/qhull.lib $(COINDIR)/lib/Coin2d.lib $(COINDIR)/lib/SoQt1d.lib
} else {
LIBS += qhull/windows/Release/qhull.lib $(COINDIR)/lib/Coin2.lib $(COINDIR)/lib/SoQt1.lib
}
DEFINES += COIN_DLL SOQT_DLL WIN32
# get rid of Windows specific warnings due to unsecure calls to fscanf, fopen etc.
# this could use a more solid, cross-platform solution
DEFINES += _CRT_SECURE_NO_DEPRECATE
#------------------------------------ add-ons --------------------------------------------
mosek {
!exists($(MOSEK6_0_INSTALLDIR)) {
error("Mosek not installed or MOSEK6_0_INSTALLDIR environment variable not set")
}
INCLUDEPATH += $(MOSEK6_0_INSTALLDIR)/tools/platform/win/h
#no separate debug or release versions of the lib
LIBS += $(MOSEK6_0_INSTALLDIR)/tools/platform/win/dll/mosek6_0.lib
}
cgal_qp {
!exists($(CGAL_DIR)) {
error("CGAL not installed or CGAL environment variable not set")
}
INCLUDEPATH += $(CGAL_DIR)/include
graspitdbg {
LIBS += $(CGAL_DIR)/lib/CGAL-vc71-mt-gd.lib
} else {
LIBS += $(CGAL_DIR)/lib/CGAL-vc71-mt.lib
}
}
boost {
!exists($(BOOST_ROOT)) {
error("Boost not installed or BOOST_ROOT environment variable not set")
}
INCLUDEPATH += $(BOOST_ROOT)
graspitdbg {
LIBS += $(BOOST_ROOT)/lib/libboost_thread-vc71-mt-gd-1_37.lib
} else {
LIBS += $(BOOST_ROOT)/lib/libboost_thread-vc71-mt-1_37.lib
}
}
hardwarelib {
DEFINES += HARDWARE_LIB
graspitdbg {
LIBS += hardware/Debug/HardwareLib.lib
} else {
LIBS += hardware/Release/HardwareLib.lib
}
INCLUDEPATH += hardware
FORMS += ui/sensorInputDlg.ui
HEADERS += ui/sensorInputDlg.h
SOURCES += ui/sensorInputDlg.cpp
}
ros {
error("Ros only available under Linux")
}