1
#-----------------------------------------------------------------------------
2
# Common installation configuration for all projects.
3
#-----------------------------------------------------------------------------
6
#-----------------------------------------------------------------------------
7
# setup the installation prefix
8
#-----------------------------------------------------------------------------
9
INSTALL_PREFIX = /usr # default installation prefix
11
# default prefix can be overriden by defining PREFIX when running qmake
14
message("==== NOTE: To override the installation path run: `qmake PREFIX=/custom/path'")
15
message("==== (current installation path is `$${INSTALL_PREFIX}')")
17
INSTALL_PREFIX = $${PREFIX}
19
message("==== install prefix set to `$${INSTALL_PREFIX}'")
23
#-----------------------------------------------------------------------------
24
# default installation target for applications
25
#-----------------------------------------------------------------------------
26
contains( TEMPLATE, app ) {
27
target.path = $${INSTALL_PREFIX}/bin
30
message("==== INSTALLS += target")
34
#-----------------------------------------------------------------------------
35
# default installation target for libraries
36
#-----------------------------------------------------------------------------
37
contains( TEMPLATE, lib ) {
39
target.path = $${INSTALL_PREFIX}/lib
42
message("==== INSTALLS += target")
44
# reset the .pc file's `prefix' variable
45
#include( tools/fix-pc-prefix.pri )
49
#-----------------------------------------------------------------------------
50
# target for header files
51
#-----------------------------------------------------------------------------
52
!isEmpty( headers.files ) {
53
headers.path = $${INSTALL_PREFIX}/include/$${TARGET}
56
message("==== INSTALLS += headers")
59
message("==== NOTE: Remember to add your API headers into `headers.files' for installation!")