pulsatingscience.pro 2.83 KB
Newer Older
Oliver Bock's avatar
Oliver Bock committed
1
# ##############################################################################
Oliver Bock's avatar
Oliver Bock committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
# Copyright (C) 2008 by Oliver Bock                                            #
# oliver.bock[AT]aei.mpg.de                                                    #
#                                                                              #
# This file is part of PulsatingScience.                                       #
#                                                                              #
# PulsatingScience is free software: you can redistribute it and/or modify     #
# it under the terms of the GNU General Public License as published            #
# by the Free Software Foundation, version 3 of the License.                   #
#                                                                              #
# PulsatingScience is distributed in the hope that it will be useful,          #
# but WITHOUT ANY WARRANTY; without even the implied warranty of               #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the                 #
# GNU General Public License for more details.                                 #
#                                                                              #
# You should have received a copy of the GNU General Public License            #
# along with PulsatingScience. If not, see <http://www.gnu.org/licenses/>.     #
#                                                                              #
Oliver Bock's avatar
Oliver Bock committed
19 20 21
# ##############################################################################
TEMPLATE = app
TARGET = PulsatingScience
Oliver Bock's avatar
Oliver Bock committed
22
CONFIG += qt warn_on debug_and_release
Oliver Bock's avatar
Oliver Bock committed
23 24
QT += core \
    gui \
25 26
    opengl \
    webkit
Oliver Bock's avatar
Oliver Bock committed
27
HEADERS += src/pulsaranimationwidget.h \
Oliver Bock's avatar
Oliver Bock committed
28
    src/pulsescopewidget.h \
29 30
    src/pulsatingscience.h \
    src/pulsatingsciencehelp.h
Oliver Bock's avatar
Oliver Bock committed
31
SOURCES += src/pulsaranimationwidget.cpp \
Oliver Bock's avatar
Oliver Bock committed
32
    src/pulsescopewidget.cpp \
Oliver Bock's avatar
Oliver Bock committed
33
    src/pulsatingscience.cpp \
34
    src/pulsatingsciencehelp.cpp \
Oliver Bock's avatar
Oliver Bock committed
35
    src/main.cpp
36 37 38 39
FORMS += src/pulsatingscience.ui \
    src/pulsatingsciencehelp.ui
RESOURCES += src/pulsatingscience.qrc \
    src/pulsatingsciencehelp.qrc
40
TS_DIR = src/resources
41
TRANSLATIONS = src/resources/pulsatingscience_de.ts
42 43 44 45 46

win32 {
	RC_FILE = src/resources/pulsatingscience.rc
}
macx {
47
	QMAKE_LFLAGS += -bind_at_load
48 49 50
	ICON = src/resources/pulsatingscience.icns
}

51
INCLUDEPATH += ./
Oliver Bock's avatar
Oliver Bock committed
52 53 54
UI_DIR = src/.ui
RCC_DIR  = src/.rcc
MOC_DIR = src/.moc
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
OBJECTS_DIR = src/.obj

!isEmpty(TRANSLATIONS) {
	isEmpty(QMAKE_LRELEASE) {
		win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\lrelease.exe
		else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
	}

	isEmpty(TS_DIR):TS_DIR = translations

	linguist.name = lrelease ${QMAKE_FILE_IN}
	linguist.input = TRANSLATIONS
	linguist.output = $$TS_DIR/${QMAKE_FILE_BASE}.qm
	linguist.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN}
	linguist.CONFIG = no_link
	QMAKE_EXTRA_COMPILERS += linguist
	PRE_TARGETDEPS += compiler_linguist_make_all
}