1 ###############################################################################
3 # This file is part of quickdice.
5 # Copyright (C) 2011 Digia Plc. and/or its subsidiary(-ies).
6 # Contact: Zoltan Papp <zoltan.papp@digia.com>
8 # This library is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU Lesser General Public License version 2.1 as
10 # published by the Free Software Foundation.
12 # This library is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
15 # License for more details.
17 # You should have received a copy of the GNU Lesser General Public License
18 # along with this library; if not, write to the Free Software Foundation, Inc.,
19 # 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 ###############################################################################
23 #------------------------------------------------------------------------------
24 # Common installation configuration for all projects.
25 #------------------------------------------------------------------------------
27 #------------------------------------------------------------------------------
28 # setup the installation prefix
29 #------------------------------------------------------------------------------
30 !include( common-vars.pri ) : \
31 error( "Unable to include common-vars.pri" )
33 INSTALL_PREFIX = /usr # default installation prefix
35 # default prefix can be overriden by defining PREFIX when running qmake
39 message("==== NOTE: To override the installation path run: `qmake PREFIX=/custom/path'")
40 message("==== (current installation path is `$${INSTALL_PREFIX}')")
43 INSTALL_PREFIX = $${PREFIX}
45 message("==== install prefix set to `$${INSTALL_PREFIX}'")
48 #------------------------------------------------------------------------------
49 # default installation target for applications
50 #------------------------------------------------------------------------------
51 contains( TEMPLATE, app ) {
53 target.path = $${INSTALL_PREFIX}/bin
56 message("==== INSTALLS += target")
59 #------------------------------------------------------------------------------
60 # default installation target for libraries
61 #------------------------------------------------------------------------------
62 contains( TEMPLATE, lib ) {
64 target.path = $${INSTALL_PREFIX}/lib
67 message("==== INSTALLS += target")
70 #-----------------------------------------------------------------------------
71 # target for header files
72 #-----------------------------------------------------------------------------
73 !isEmpty( headers.files ) {
75 headers.path = $${INSTALL_PREFIX}/include/$${PROJECT_FULL_NAME}
78 message("==== INSTALLS += headers")
82 message("==== NOTE: Remember to add your API headers into `headers.files' for installation!")
85 #------------------------------------------------------------------------------
87 #------------------------------------------------------------------------------