First version of VLC Phonon backend
[phonon:phonon-mplayer.git] / phonon-vlc / CMakeLists.txt
1 project(phonon-vlc)
2
3 find_package(Qt4 REQUIRED)
4
5 include_directories(${QT_INCLUDE_DIR})
6
7 include_directories(${CMAKE_CURRENT_SOURCE_DIR})
8
9 set(phonon_vlc_SRCS
10         backend.cpp
11         mediaobject.cpp
12         videowidget.cpp
13         audiooutput.cpp
14         vlcloader.cpp
15         vlcevents.cpp
16 )
17
18 qt4_wrap_cpp(phonon_vlc_SRCS
19         backend.h
20         mediaobject.h
21         videowidget.h
22         audiooutput.h
23         vlcloader.h
24         vlcevents.h
25 )
26
27 add_library(phonon_vlc MODULE ${phonon_vlc_SRCS})
28
29 target_link_libraries(phonon_vlc
30         ${QT_QTCORE_LIBRARY}
31         ${QT_LIBRARY_DIR}/phonond4.lib
32         ${QT_QTGUI_LIBRARY}
33 )
34
35 install(TARGETS phonon_vlc
36         RUNTIME DESTINATION "C:/Qt/4.4.0/plugins/phonon_backend"
37         LIBRARY DESTINATION "C:/Qt/4.4.0/plugins/phonon_backend"
38         ARCHIVE DESTINATION "C:/Qt/4.4.0/plugins/phonon_backend"
39 )