gazetk / GazeTkHub / common.pri @ 2eb54f9d
History | View | Annotate | Download (815 Bytes)
1 | 5444009a | Thies Pfeiffer | #Includes common configuration for all subdirectory .pro files. |
---|---|---|---|
2 | 2eb54f9d | Thies Pfeiffer | INCLUDEPATH += . .. ../../include |
3 | 5444009a | Thies Pfeiffer | WARNINGS += -Wall |
4 | |||
5 | TEMPLATE = lib |
||
6 | |||
7 | 2eb54f9d | Thies Pfeiffer | debug_and_release:build_pass { |
8 | CONFIG(debug, debug|release) { |
||
9 | CURBUILD = debug |
||
10 | } else { |
||
11 | CURBUILD = release |
||
12 | } |
||
13 | |||
14 | GAZETK_TARGET = $(GAZETK_HOME) |
||
15 | isEmpty(GAZETK_TARGET) { |
||
16 | DESTDIR = $${top_builddir}/$${CURBUILD} |
||
17 | } else { |
||
18 | DESTDIR = $${GAZETK_TARGET}/$${CURBUILD} |
||
19 | } |
||
20 | |||
21 | OBJECTS_DIR = $${top_builddir}/$${CURBUILD}/$dirname($${_PRO_FILE_PWD_}) |
||
22 | |||
23 | MOC_DIR = $${OBJECTS_DIR} |
||
24 | UI_DIR = $${OBJECTS_DIR} |
||
25 | RCC_DIR = $${OBJECTS_DIR} |
||
26 | INCLUDEPATH += $${OBJECTS_DIR} |
||
27 | LIBS += -L$${DESTDIR}/bin -L$${DESTDIR}/lib |
||
28 | unset(CURBUILD) |
||
29 | } |
||
30 | |||
31 | 5444009a | Thies Pfeiffer | # The following keeps the generated files at least somewhat separate |
32 | # from the source files. |
||
33 | UI_DIR = uics |
||
34 | MOC_DIR = mocs |
||
35 | OBJECTS_DIR = objs |