forked from graspit-simulator/graspit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
graspit-lib-WINDOWS.pro
127 lines (107 loc) · 3.57 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# 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 $(CLAPACKDIR)/LIB/
graspitdbg {
LIBS += BLASd.lib clapackd.lib libF77d.lib libI77d.lib
} else {
LIBS += BLAS.lib clapack.lib libF77.lib libI77.lib
}
INCLUDEPATH += $(CLAPACKDIR)/include $(CLAPACKDIR)/src/win32/BLAS/WRAP
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 ----------------------------------
!exists(($QHULLDIR))
{
warning("QHULLDIR not set. Assuming QHULLDIR=$PWD/qhull")
QHULL=qhull
}else{
QHULL=$(QHULLDIR)
}
INCLUDEPATH += $$QHULL/src/libqhull
graspitdbg {
LIBS += $$QHULL/lib/qhullstatic_d.lib $(COINDIR)/lib/Coin3d.lib $(COINDIR)/lib/SoQt1d.lib
} else {
LIBS += $$QHULL/lib/qhullstatic.lib $(COINDIR)/lib/Coin3.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 --------------------------------------------
graspit_test{
error("tests not available in Windows. Disable the graspit_test option in graspit.pro")
}
cgdb {
graspit_ros {
error("ROS not available in Windows. Disable the graspit_ros option in graspit.pro")
}
}
mosek {
!exists($(MOSEK5_0_INSTALLDIR)) {
error("Mosek not installed or MOSEK5_0_INSTALLDIR environment variable not set")
}
INCLUDEPATH += $(MOSEK5_0_INSTALLDIR)/tools/platform/win/h
#no separate debug or release versions of the lib
LIBS += $(MOSEK5_0_INSTALLDIR)/tools/platform/win/dll/mosek5_0.lib
}
qpOASES {
error("qpOASES not available under Windows. Disable the qpOASES option in graspit.pro")
}
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")
}
INCLUDES += include/dlfcn-win32.h
SOURCES += src/dlfcn-win32.cpp
DEFINES += GRASPIT_EXPORTS