.pro make install now working.

This commit is contained in:
Roman Isaikin
2015-08-07 22:56:51 +03:00
parent db576fce6e
commit 5be342038a

View File

@ -3,10 +3,7 @@ CONFIG += shared
QMAKE_CXXFLAGS += -std=c++11
TARGET = qmsgpack
DEFINES += MSGPACK_MAKE_LIB
HEADERS += msgpack_common.h
VERSION = 0.1.0
message($${PWD})
message($$_PRO_FILE_PWD_)
HEADERS += \
msgpack_common.h \
@ -25,3 +22,23 @@ SOURCES += \
private/qt_types_p.cpp \
private/unpack_p.cpp \
private/pack_p.cpp
release: DESTDIR = ../build/release
debug: DESTDIR = ../build/debug
OBJECTS_DIR = $$DESTDIR/obj
MOC_DIR = $$DESTDIR/moc
HEADERS_INSTALL = \
msgpack_common.h \
msgpackstream.h \
msgpack_export.h \
msgpack.h \
endianhelper.h
unix {
header_files.files = $$HEADERS_INSTALL
header_files.path = /usr/include/qmsgpack
target.path = /usr/lib
INSTALLS += header_files target
}