QT += core gui TARGET = qmsgpack CONFIG -= app_bundle TEMPLATE = lib DEFINES += MSGPACK_MAKE_LIB DESTDIR = $$TOP_SRCDIR/bin QMAKE_CXXFLAGS += -fPIC CONFIG += debug_and_release CONFIG(debug, debug|release) { TARGET = $$join(TARGET,,,d) } SOURCES += msgpack.cpp \ msgpackcommon.cpp \ private/pack_p.cpp \ private/unpack_p.cpp \ private/qt_types_p.cpp \ msgpackstream.cpp \ stream/time.cpp \ stream/geometry.cpp HEADERS += \ msgpack.h \ private/pack_p.h \ private/unpack_p.h \ endianhelper.h \ msgpackcommon.h \ msgpack_export.h \ private/qt_types_p.h \ msgpackstream.h \ stream/time.h \ stream/geometry.h HEADERS_INSTALL = \ msgpack.h \ endianhelper.h \ msgpackcommon.h \ msgpack_export.h \ msgpackstream.h \ STREAM_HEADERS_INSTALL = \ stream/time.h location { QT += location SOURCES += stream/location.cpp HEADERS += stream/location.h STREAM_HEADERS_INSTALL += stream/location.h } unix { header_files.files = $$HEADERS_INSTALL header_files.path = /usr/include/qmsgpack stream_header_files.files = $$STREAM_HEADERS_INSTALL stream_header_files.path = /usr/include/qmsgpack/stream target.path = /usr/lib INSTALLS += header_files stream_header_files target }