source: tspsg/tspsg.pro @ 21c03af787

appveyorimgbotreadme
Last change on this file since 21c03af787 was 21c03af787, checked in by Oleksii Serdiuk, 11 years ago

Updated copyright endyear from 2012 to 2013.

  • Property mode set to 100644
File size: 2.2 KB
Line 
1######################################################################
2#
3#  TSPSG: TSP Solver and Generator
4#  Copyright (C) 2007-2013 Oleksii Serdiuk <contacts[at]oleksii[dot]name>
5#
6#  $Id: $Format:%h %ai %an$ $
7#  $URL: http://tspsg.info/ $
8#
9#  This file is part of TSPSG.
10#
11######################################################################
12
13!nosvg {
14    QT += svg
15} else {
16    DEFINES += NOSVG
17}
18
19greaterThan(QT_MAJOR_VERSION, 4) {
20    QT += printsupport concurrent
21}
22
23wincewm*|symbian|maemo*|simulator {
24    CONFIG += handheld
25}
26
27TEMPLATE = app
28
29# QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.5.sdk
30
31# Version information
32QMAKE_TARGET_COMPANY = Oleksii Serdiuk
33QMAKE_TARGET_PRODUCT = TSP Solver and Generator
34QMAKE_TARGET_DESCRIPTION = TSPSG: TSP Solver and Generator
35QMAKE_TARGET_COPYRIGHT = Copyright © 2007-2013 Oleksii Serdiuk <contacts[at]oleksii[dot]name>
36
37# Version detection
38include(version.pri)
39
40DEFINES += BUILD_VERSION_MAJOR=$$BUILD_VERSION_MAJOR \
41    BUILD_VERSION_MINOR=$$BUILD_VERSION_MINOR \
42    BUILD_RELEASE=$$BUILD_RELEASE \
43    BUILD_NUMBER=$$BUILD_NUMBER
44
45!debug_and_release|build_pass {
46    CONFIG(debug, debug|release) {
47        OBJECTS_DIR = debug
48        DEFINES += DEBUG
49#           CONFIG += console
50        D = d
51    } else {
52        OBJECTS_DIR = release
53        D =
54    }
55}
56DESTDIR = bin
57TARGET = tspsg$${D}
58
59# Saving all intermediate files to tmp directory.
60MOC_DIR = tmp
61RCC_DIR = tmp
62UI_DIR = tmp
63
64# We need to generate translations before building.
65# Either way, resource files won't compile.
66translations.name = Translations
67translations.input = TRANSLATIONS
68translations.output = $$_PRO_FILE_PWD_/l10n/${QMAKE_FILE_BASE}.qm
69freebsd-* {
70    translations.commands = $$[QT_INSTALL_BINS]/lrelease-qt$${QT_MAJOR_VERSION} ${QMAKE_FILE_IN}
71} else {
72    translations.commands = $$[QT_INSTALL_BINS]/lrelease ${QMAKE_FILE_IN}
73}
74translations.CONFIG = no_link
75QMAKE_EXTRA_COMPILERS += translations
76PRE_TARGETDEPS += compiler_translations_make_all
77
78# Include 3rd party libraries
79!handheld {
80    include(src/3rdparty/qttoolbardialog-2.2_1-opensource/src/qttoolbardialog.pri)
81}
82
83win32:LIBS += -lole32
84
85# Source
86include(tspsg.pri)
87
88# Help
89include(help/help.pri)
90
91# Code Documentation
92include(doc/doc.pri)
93
94# Installation and deployment rules
95include(install.pri)
Note: See TracBrowser for help on using the repository browser.