-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
64 lines (57 loc) · 2 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
project(spokify)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake/Modules/")
add_definitions(-fexceptions)
find_package(KDE4 REQUIRED)
find_package(libspotify REQUIRED)
find_package(LibLastFm REQUIRED)
set(QT_USE_QTNETWORK TRUE)
set(QT_USE_QTXML TRUE)
include(${QT_USE_FILE})
include_directories(${KDE4_INCLUDES} ${LIBSPOTIFY_INCLUDE_DIR} ${LIBLASTFM_INCLUDE_DIR})
set(spokify_SRCS
login.cpp
main.cpp
mainwidget.cpp
mainwindow.cpp
playlistmodel.cpp
soundfeeder.cpp
trackmodel.cpp
playpausebutton.cpp
coverlabel.cpp
trackviewdelegate.cpp
trackview.cpp
scrobblingsettingsdialog.cpp
scrobbler.cpp
slider.cpp
searchhistorymodel.cpp
mimedata.cpp
playlistview.cpp
analyzerbase.cpp
fht.cpp
blockanalyzer.cpp
lyricswidget.cpp)
kde4_add_executable(spokify ${spokify_SRCS})
target_link_libraries(spokify ${KDE4_KDEUI_LIBS} ${QT_LIBRARIES} ${LIBSPOTIFY_LIBRARIES} ${LIBLASTFM_LIBRARY} asound)
install(TARGETS spokify DESTINATION ${BIN_INSTALL_DIR})
install(FILES spokifyui.rc
spokify.notifyrc DESTINATION ${DATA_INSTALL_DIR}/spokify)
install(FILES images/spotify-core-logo-128x128.png
images/nocover-200x200.png
images/nocover.svg
images/cover-loading.gif
images/media-playback-pause.png
images/media-playback-start.png
images/media-playback-stop.png
images/media-seek-backward.png
images/media-seek-forward.png
images/media-skip-backward.png
images/media-skip-forward.png
images/slider_left.png
images/slider_right.png
images/slider_body_background.png
images/slider_body_left.png
images/slider_body_right.png
images/slider_body.png
images/dialog-information.png
images/searching.png DESTINATION ${DATA_INSTALL_DIR}/spokify/images)
install(FILES spokify.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})