forked from graspit-simulator/graspit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
graspit-lib-LINUX.pro
92 lines (66 loc) · 2.49 KB
/
graspit-lib-LINUX.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
# Linux-specific libraries for GraspIt!. Included from graspit.pro - not for standalone use.
LIBS += $$ADDITIONAL_LINK_FLAGS
# ---------------------- Blas and Lapack ----------------------------------
LIBS += -lblas -llapack
HEADERS += include/lapack_wrappers.h
# ---------------------- General libraries and utilities ----------------------------------
#dynamic linking library
LIBS += -ldl
#add qhull include dir
INCLUDEPATH += /usr/include/qhull
#add qhull libraries
LIBS += -lqhull
#add openinventor libraries
LIBS += -lSoQt -lCoin
#add utility libraries
LIBS += -lGL -lpthread
MOC_DIR = .moc
OBJECTS_DIR = .obj
#needed for plugins to find symbols in the main program
QMAKE_LFLAGS += -rdynamic
#------------------------------------ add-ons --------------------------------------------
graspit_test{
INCLUDEPATH += test/
SOURCES += test/simple_test.cpp
LIBS += -L/usr/lib/ -lgtest
TARGET = graspit-test
QMAKE_CXXFLAGS += -std=c++0x
}
cgdb {
graspit_ros {
SOURCES += src/DBase/DBPlanner/ros_database_manager.cpp
HEADERS += src/DBase/DBPlanner/ros_database_manager.h
DEFINES += GRASPIT_ROS
DEFINES += ROS_DATABASE_MANAGER
MODEL_DATABASE_CFLAGS = $$system(rospack cflags-only-I household_objects_database)
INCLUDEPATH += $$MODEL_DATABASE_CFLAGS
MODEL_DATABASE_LIBS_L = $$system(rospack libs-only-L household_objects_database)
MODEL_DATABASE_LIBS_l = $$system(rospack libs-only-l household_objects_database)
QMAKE_LIBDIR += $$MODEL_DATABASE_LIBS_L
SPLIT_LIBS = $$split(MODEL_DATABASE_LIBS_l,' ')
for(onelib,SPLIT_LIBS):QMAKE_LIBS += -l$${onelib}
}
}
mosek {
!exists($(MOSEK6_0_INSTALLDIR)) {
error("Mosek not installed or MOSEK6_0_INSTALLDIR environment variable not set")
}
INCLUDEPATH += $(MOSEK6_0_INSTALLDIR)/tools/platform/linux32x86/h
LIBS += -L$(MOSEK6_0_INSTALLDIR)/tools/platform/linux32x86/bin/ -lmoseknoomp -lc -ldl -lm
}
qpOASES {
!exists($(QPOASES_DIR)) {
error("qpOASES not installed or QPOASES_DIR environment variable not set")
}
INCLUDEPATH += $(QPOASES_DIR)/INCLUDE
LIBS += -L$(QPOASES_DIR)/SRC -lqpOASES
}
cgal_qp {
error("CGAL linking only tested under Windows")
}
boost {
LIBS += -L/usr/lib/x86_64-linux-gnu/ -lboost_system
}
hardwarelib {
error("Hardware library only available under Windows")
}