~pimvullers/beat-box/fix-983560

« back to all changes in this revision

Viewing changes to src/CMakeLists.txt~

  • Committer: Scott Ringwelski
  • Date: 2012-05-03 04:19:07 UTC
  • Revision ID: sgringwe@mtu.edu-20120503041907-eceghf7bo547yvlm
0.4 Changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
find_package(Vala REQUIRED)
 
2
include(ValaVersion)
 
3
ensure_vala_version("0.16.0" MINIMUM)
 
4
include(ValaPrecompile)
 
5
set(DATADIR "${CMAKE_INSTALL_PREFIX}/share")
 
6
set(PKG_DATADIR "${CMAKE_INSTALL_PREFIX}/share/beatbox")
 
7
set(ICON_FOLDER "${CMAKE_INSTALL_PREFIX}/share/beatbox/icons/hicolor")
 
8
set(GETTEXT_PACKAGE "beatbox")
 
9
set(RELEASE_NAME "Acolyte")
 
10
set(VERSION "0.3")
 
11
set(VERSION_INFO "Pre-Release")
 
12
configure_file(${CMAKE_SOURCE_DIR}/src/config.h.cmake ${CMAKE_BINARY_DIR}/src/config.h)
 
13
add_definitions(-include config.h)
 
14
 
 
15
vala_precompile(VALA_C
 
16
    ${CMAKE_SOURCE_DIR}/src/config.vapi
 
17
    BeatBox.vala
 
18
    Core/Icons.vala
 
19
    Core/LibraryWindow.vala
 
20
    Core/LibraryManager.vala
 
21
    Core/FileOperator.vala
 
22
    Lastfm/LastFM.vala
 
23
    Lastfm/AlbumInfo.vala
 
24
    Lastfm/Image.vala
 
25
    Lastfm/Tag.vala
 
26
    Lastfm/TrackInfo.vala
 
27
    Lastfm/ArtistInfo.vala
 
28
    Lastfm/SimilarMedia.vala
 
29
    Devices/DeviceManager.vala
 
30
    Devices/Device.vala
 
31
    Devices/iPodDevice.vala
 
32
    Devices/AndroidDevice.vala
 
33
    Devices/CDRomDevice.vala
 
34
    Devices/DevicePreferences.vala
 
35
    Objects/TreeViewSetup.vala
 
36
    Objects/SmartQuery.vala
 
37
    Objects/MediaInfo.vala
 
38
    Objects/SmartPlaylist.vala
 
39
    Objects/LyricFetcher.vala
 
40
    Objects/SoundMenuIntegration.vala
 
41
    Objects/Media.vala
 
42
    Objects/Album.vala
 
43
    Objects/MediaKeyListener.vala
 
44
    Objects/MPRIS.vala
 
45
    Objects/Playlist.vala
 
46
    Objects/PodcastManager.vala
 
47
    Objects/Icon.vala
 
48
    Widgets/TopDisplay.vala
 
49
    Widgets/WarningLabel.vala
 
50
    Widgets/SimpleOptionChooser.vala
 
51
    Widgets/PresetList.vala
 
52
    Widgets/SideBar.vala
 
53
    Widgets/RatingWidget.vala
 
54
    Widgets/SpaceWidget.vala
 
55
    Widgets/StatusBar.vala
 
56
    Widgets/SearchSuggester.vala
 
57
    CellRenderers/SmartAlbumRenderer.vala
 
58
    CellRenderers/CellDataFunctionHelper.vala
 
59
    DataBase/DataBaseManager.vala
 
60
    DataBase/DataBaseUpdater.vala
 
61
    Store/Price.vala
 
62
    Store/Release.vala
 
63
    Store/SearchResult.vala
 
64
    Store/Store.vala
 
65
    Store/FormatTag.vala
 
66
    Store/Widgets/ArtistView.vala
 
67
    Store/Widgets/IconView.vala
 
68
    Store/Widgets/SearchResultsPage.vala
 
69
    Store/Widgets/TrackList.vala
 
70
    Store/Widgets/ReleaseRotator.vala
 
71
    Store/Widgets/TagLabel.vala
 
72
    Store/Widgets/StoreView.vala
 
73
    Store/Widgets/AlbumView.vala
 
74
    Store/Widgets/ObjectList.vala
 
75
    Store/Widgets/SearchList.vala
 
76
    Store/Widgets/HomeView.vala
 
77
    Store/Widgets/TagGroup.vala
 
78
    Store/BasketItem.vala
 
79
    Store/XMLParser.vala
 
80
    Store/Label.vala
 
81
    Store/Basket.vala
 
82
    Store/Artist.vala
 
83
    Store/Track.vala
 
84
    GStreamer/CDDA.vala
 
85
    GStreamer/Video.vala
 
86
    GStreamer/Equalizer.vala
 
87
    GStreamer/Pipeline.vala
 
88
    GStreamer/CDRipper.vala
 
89
    GStreamer/GStreamerTagger.vala
 
90
    GStreamer/ReplayGain.vala
 
91
    GStreamer/Streamer.vala
 
92
    Views/DeviceView.vala
 
93
#   Views/ContentView.vala
 
94
    Views/DeviceSummaryWidget.vala
 
95
    Views/InfoPanel.vala
 
96
    Views/SideTreeView.vala
 
97
    Views/SimilarMediaView.vala
 
98
    Wrappers/ViewWrapper.vala
 
99
    Wrappers/MusicViewWrapper.vala
 
100
    Wrappers/PodcastViewWrapper.vala
 
101
    Wrappers/StationViewWrapper.vala
 
102
    Wrappers/DeviceViewWrapper.vala
 
103
    Wrappers/SimilarViewWrapper.vala
 
104
    Lists/FastList.vala
 
105
    Lists/FastListModel.vala
 
106
    Lists/GenericList.vala
 
107
    Lists/MusicList.vala
 
108
    Lists/PodcastList.vala
 
109
    Lists/RadioList.vala
 
110
    Grids/FastGrid.vala
 
111
    Grids/FastGridModel.vala
 
112
    Grids/GenericGrid.vala
 
113
    Grids/MusicGrid.vala
 
114
    Windows/EqualizerWindow.vala
 
115
    Windows/SmartPlaylistEditor.vala
 
116
    Windows/PreferencesWindow.vala
 
117
    Windows/InstallGstreamerPluginsDialog.vala
 
118
    Windows/SongEditor.vala
 
119
    Windows/PodcastEditor.vala
 
120
    Windows/StationEditor.vala
 
121
    Windows/PlaylistNameWindow.vala
 
122
    Windows/FileNotFoundDialog.vala
 
123
    Windows/RemoveFilesDialog.vala
 
124
    Windows/NotImportedWindow.vala
 
125
    Windows/AddPodcastWindow.vala
 
126
    Windows/SetMusicFolderConfirmation.vala
 
127
    Windows/TransferFromDeviceDialog.vala
 
128
    Windows/SyncWarningDialog.vala
 
129
PACKAGES
 
130
    glib-2.0
 
131
    gtk+-3.0
 
132
    gdk-x11-3.0
 
133
    gee-1.0
 
134
    gstreamer-0.10
 
135
    gstreamer-interfaces-0.10
 
136
    gstreamer-pbutils-0.10
 
137
    gstreamer-cdda-0.10
 
138
    taglib_c
 
139
    gio-2.0
 
140
    libxml-2.0
 
141
    libnotify
 
142
    libsoup-2.4
 
143
    json-glib-1.0
 
144
    gio-unix-2.0
 
145
    granite
 
146
    libgpod-1.0
 
147
#    libpeas-1.0
 
148
    beatbox-core
 
149
    ${ADD_PKG}
 
150
OPTIONS
 
151
    --vapidir=${CMAKE_SOURCE_DIR}/vapi
 
152
    --vapidir=${CMAKE_BINARY_DIR}/core/
 
153
    ${ADD_OPTIONS}
 
154
GENERATE_VAPI
 
155
    beatbox
 
156
GENERATE_HEADER
 
157
    beatbox
 
158
)
 
159
include_directories(${CMAKE_BINARY_DIR}/core)
 
160
add_executable(beatbox ${VALA_C})
 
161
link_directories(${ZEITGEIST_LIBRARY_DIRS} ${SQLHEAVY_LIBRARY_DIRS} ${INDICATE_LIBRARY_DIRS} ${DBUS_MENU_LIBRARY_DIRS} ${DEPS_LIBRARY_DIRS})
 
162
add_definitions(${DEPS_CFLAGS} ${ZEITGEIST_CFLAGS} ${INDICATE_CFLAGS} ${DBUS_MENU_CFLAGS} ${SQLHEAVY_CFLAGS})
 
163
target_link_libraries(beatbox ${DEPS_LIBRARIES} ${ZEITGEIST_LIBRARIES} ${DBUS_MENU_LIBRARIES} ${SQLHEAVY_LIBRARIES} ${INDICATE_LIBRARIES})
 
164
target_link_libraries(beatbox beatbox-core)
 
165
install(TARGETS beatbox RUNTIME DESTINATION bin)