1
by Alberto Mardegan
First iteration |
1 |
#----------------------------------------------------------------------------- |
2 |
# Common installation configuration for all projects. |
|
3 |
#----------------------------------------------------------------------------- |
|
4 |
||
5 |
||
6 |
#----------------------------------------------------------------------------- |
|
7 |
# default installation target for applications |
|
8 |
#----------------------------------------------------------------------------- |
|
9 |
contains(TEMPLATE, app) { |
|
10 |
target.path = $${INSTALL_PREFIX}/bin |
|
11 |
INSTALLS += target |
|
12 |
message("====") |
|
13 |
message("==== INSTALLS += target") |
|
14 |
} |
|
15 |
||
16 |
||
17 |
#----------------------------------------------------------------------------- |
|
18 |
# default installation target for libraries |
|
19 |
#----------------------------------------------------------------------------- |
|
20 |
contains(TEMPLATE, lib) { |
|
21 |
isEmpty(target.path) { |
|
35.1.10
by Alberto Mardegan
Support multiarch |
22 |
target.path = $${INSTALL_LIBDIR} |
1
by Alberto Mardegan
First iteration |
23 |
} |
24 |
INSTALLS += target |
|
25 |
message("====") |
|
26 |
message("==== INSTALLS += target") |
|
27 |
} |
|
28 |
||
29 |
#----------------------------------------------------------------------------- |
|
30 |
# target for header files |
|
31 |
#----------------------------------------------------------------------------- |
|
32 |
!isEmpty(headers.files) { |
|
33 |
headers.path = $${INSTALL_PREFIX}/include/$${TARGET} |
|
34 |
INSTALLS += headers |
|
35 |
message("====") |
|
36 |
message("==== INSTALLS += headers") |
|
37 |
} else { |
|
38 |
message("====") |
|
39 |
message("==== NOTE: Remember to add your API headers into `headers.files' for installation!") |
|
40 |
} |
|
41 |
||
42 |
||
43 |
# End of File |