# -*- Makefile -*-

CONFIG += debug

TEMPLATE = app
TARGET = pracro
DEPENDPATH += . widgets
INCLUDEPATH += . widgets
RESOURCES += client.qrc
QT += core gui network xml sql svg

# For debugging
debug {
	QMAKE_CXXFLAGS += -g -Wall -Werror
	CONFIG += debug
}

VERSION="-1.2.0"
DEFINES+=VERSION=\\\"1.2.0\\\"

win32 {
  LIBPATH += lua/lib
  INCLUDEPATH += lua/include
  LIBS += -llua51
  DEFINES += HOST_WIN32
#	debug {
#	  CONFIG += console
#	}
}

unix {
  LIBS += -llua
}

HEADERS += \
	collapser.h \
	formatparser.h \
	lua.h \
	macro.h \
	macrowindow.h \
	mainwindow.h \
	macrodrawer.h \
	messagebox.h \
	netcom.h \
	resumewidget.h \
	viewer.h \
	widgetbuilder.h \
	widgets.h \
	widgets/common.h \
	widgets/widget.h \
	widgets/label.h \
	widgets/lineedit.h \
	widgets/multilist.h \
	widgets/textedit.h \
	widgets/button.h \
	widgets/datetime.h \
	widgets/dbwidget.h \
	widgets/combobox.h \
	widgets/listbox.h \
	widgets/frame.h \
	widgets/groupbox.h \
	widgets/radiobutton.h \
	widgets/radiobuttons.h \
	widgets/checkbox.h \
	widgets/window.h \
	widgets/altcombobox.h \
	widgets/metawidget.h

SOURCES += \
	pracro.cc \
	collapser.cc \
	formatparser.cc \
	lua.cc \
	macro.cc \
	macrowindow.cc \
	mainwindow.cc \
	macrodrawer.cc \
	messagebox.cc \
	netcom.cc \
	resumewidget.cc \
	viewer.cc \
	widgetbuilder.cc \
	widgets/common.cc \
	widgets/widget.cc \
	widgets/label.cc \
	widgets/lineedit.cc \
	widgets/multilist.cc \
	widgets/textedit.cc \
	widgets/button.cc \
	widgets/combobox.cc \
	widgets/datetime.cc	 \
	widgets/dbwidget.cc	 \
	widgets/listbox.cc \
	widgets/frame.cc \
	widgets/groupbox.cc \
	widgets/radiobutton.cc \
	widgets/radiobuttons.cc \
	widgets/checkbox.cc \
	widgets/window.cc \
	widgets/altcombobox.cc \
	widgets/metawidget.cc

DISTFILES += \
	icons/add.png \
	icons/arrows.png \
	icons/compressed.png \
	icons/del.png \
	icons/done.png \
	icons/icon.png \
	icons/padlock.png \
	icons/padlock.svg \
	icons/undone.png


TRANSLATIONS = pracro_dk.ts