File tree Expand file tree Collapse file tree 2 files changed +20
-8
lines changed Expand file tree Collapse file tree 2 files changed +20
-8
lines changed Original file line number Diff line number Diff line change 1
- # place the directory where your library will be compiled and accessed from:
2
- CPPLIBS = $$PWD /cpplibs
1
+ # CPPLIBS - the directory where your library will be compiled and accessed from:
2
+ # QTLIBS - place directory of Qt libraries folder
3
3
4
- # place directory of Qt library folder
5
- QTLIBS =C:/Qt/Qt5.0.2/5.0.2/mingw47_32/lib
4
+ win32 {
5
+ CPPLIBS =$$PWD /cpplibs
6
+ QTLIBS =C:/Qt/Qt5.0.2/5.0.2/mingw47_32/lib
7
+
8
+ isEmpty ( QTLIBS ) {
9
+ error ("You need to define QTLIBS environment variable(Qt lib folder ).")
10
+ }
11
+ }
12
+
13
+ linux-g++ {
14
+ CPPLIBS =$$PWD /cpplibsLINUX
15
+ }
6
16
7
17
# common settings for testcases in libs
8
18
CONFIG += debug
@@ -32,6 +42,3 @@ isEmpty(CPPLIBS) {
32
42
error ("You should define CPPLIBS environment variable to point to this location." )
33
43
}
34
44
35
- isEmpty ( QTLIBS ) {
36
- error ("You need to define QTLIBS environment variable(Qt lib folder ).")
37
- }
Original file line number Diff line number Diff line change 2
2
3
3
include (common.pri )
4
4
DESTDIR = $$CPPLIBS
5
- LIBS += -L $$CPPLIBS -L $$QTLIBS
5
+ LIBS += -L $$CPPLIBS
6
+
7
+ win32 {
8
+ LIBS += -L $$QTLIBS
9
+ }
10
+
6
11
TEMPLATE = lib
7
12
8
13
win32 {
You can’t perform that action at this time.
0 commit comments