~mardy/signon/packaging

1 by Alberto Mardegan
Initial commit
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 ) {
423 by Alberto Mardegan
Maintainers can specify the library install path
21
    target.path  = $${INSTALL_LIBDIR}
1 by Alberto Mardegan
Initial commit
22
    INSTALLS    += target
23
    message("====")
24
    message("==== INSTALLS += target")
25
}
26
27
#-----------------------------------------------------------------------------
28
# target for header files
29
#-----------------------------------------------------------------------------
30
!isEmpty( headers.files ) {
31
    headers.path  = $${INSTALL_PREFIX}/include/$${TARGET}
32
    INSTALLS     += headers
33
    message("====")
34
    message("==== INSTALLS += headers")
35
} else {
36
    message("====")
37
    message("==== NOTE: Remember to add your API headers into `headers.files' for installation!")
38
}
39
40
41
# End of File