This commit is contained in:
Anselme 2015-06-06 14:36:18 +02:00
parent 85e4f4db0e
commit 12da0a08f7
6 changed files with 12 additions and 6 deletions

View File

@ -7,3 +7,9 @@ SUBDIRS = ircbot \
app.depends = ircbot
#copy res
copydata.commands = $(COPY_DIR) $$PWD/res $$OUT_PWD
first.depends = $(first) copydata
export(first.depends)
export(copydata.commands)
QMAKE_EXTRA_TARGETS += first copydata

View File

@ -1,12 +1,12 @@
QT += core gui network widgets
DESTDIR = $$bin_dir
DESTDIR = $$relative_path($$bin_dir)
TARGET = SparrowBot
TEMPLATE = app
CONFIG += c++11
LIBS += $$lib_dir/libircbot.a
LIBS += $$relative_path($$lib_dir/libircbot.a)
INCLUDEPATH += ../ircbot
SOURCES = main.cpp \

View File

@ -19,7 +19,7 @@ void Vocab::load(QString filename)
{
QFile file(filename);
if(!file.exists())
std::cerr << "can't find " << filename << std::endl;
std::cerr << "can't find " << filename.toStdString() << std::endl;
else if(file.open(QIODevice::ReadOnly | QIODevice::Text))
{
std::cerr << "file is open" << std::endl;

View File

@ -9,7 +9,7 @@ do
cd build
qmake-qt5 ../SparrowBot.pro
make
cd ../bin
cd bin
./SparrowBot -nogui nick=SparrowBot chan=epicsparrow server=irc.freenode.net port=6667
cd ..
cd ../..
done

View File

@ -1,6 +1,6 @@
QT += core gui network widgets
DESTDIR = $$lib_dir
DESTDIR = $$relative_path($$lib_dir)
TARGET = ircbot

Binary file not shown.