diff --git a/youtube/youtube.pro b/youtube/youtube.pro index e8145e4..47fca74 100644 --- a/youtube/youtube.pro +++ b/youtube/youtube.pro @@ -10,6 +10,13 @@ greaterThan(QT_MAJOR_VERSION, 5): QT += widgets TARGET = youtube TEMPLATE = lib +CONFIG += plugin + +isEmpty(LIBDIR) { + LIBDIR=/usr/lib +} + +target.path = $${LIBDIR}/qmmp/Transports INCLUDEPATH += /usr/include/python3.6m unix:LIBS += -lqmmp -lqmmpui -lqjson -lPythonQt -lcurl @@ -29,3 +36,5 @@ HEADERS += \ youtubestreamreader.h \ youtubedl.h \ youtubeapi.h + +INSTALLS += target diff --git a/youtubeui/youtubeui.pro b/youtubeui/youtubeui.pro index 3b638fd..6b98abe 100644 --- a/youtubeui/youtubeui.pro +++ b/youtubeui/youtubeui.pro @@ -10,6 +10,13 @@ greaterThan(QT_MAJOR_VERSION, 5): QT += widgets TARGET = youtubeui TEMPLATE = lib +CONFIG += plugin + +isEmpty(LIBDIR) { + LIBDIR=/usr/lib +} + +target.path = $${LIBDIR}/qmmp/General unix:LIBS += -lqmmp -lqmmpui -lqjson @@ -32,3 +39,4 @@ HEADERS += youtubewindow.h \ FORMS += youtubewindow.ui \ youtubepreferences.ui +INSTALLS += target