Skip to content

Commit

Permalink
Add cover plugin proto
Browse files Browse the repository at this point in the history
  • Loading branch information
neochapay committed Sep 17, 2022
1 parent bc97f1b commit 16b8ebe
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/CMakeLists.txt
Expand Up @@ -11,6 +11,7 @@ set(HEADERS sourcepluginmanager.h
set(PUBLIC_HEADERS artist.h
audiofile.h
downloader.h
coversourceplugin.h
musicsourceplugin.h
track.h)

Expand Down
1 change: 1 addition & 0 deletions src/plugins/CMakeLists.txt
@@ -1 +1,2 @@
add_subdirectory(localsource)
add_subdirectory(musicbrainzcover)
24 changes: 24 additions & 0 deletions src/plugins/musicbrainzcover/CMakeLists.txt
@@ -0,0 +1,24 @@
SET(PLUGINNAME musicbrainzcover)

SET(SRC ${PLUGINNAME}plugin.cpp
cover.cpp
musicbrainzconnect.cpp)

SET(HEADERS ${PLUGINNAME}plugin.h
cover.h
musicbrainzconnect.h)

set(CMAKE_AUTOMOC ON)
add_definitions(-DQT_PLUGIN)

add_library(${PLUGINNAME} MODULE ${SRC} ${HEADERS})
include_directories("../../lib")

target_link_libraries(${PLUGINNAME} PUBLIC
Qt5::DBus
Qt5::Sql
Glacier::Music
PkgConfig::NEMONOTIFICATIONS)

install(TARGETS ${PLUGINNAME}
LIBRARY DESTINATION /usr/lib/glacier-music/plugin/sources)

0 comments on commit 16b8ebe

Please sign in to comment.