Added include path for libv4l2 includes, rather than assuming they are
[kdenetwork.git] / kopete / libkopete / avdevice / CMakeLists.txt
blob9d059b00beefa333fa6fe3556577024184718913
2 if (LIBV4L2_FOUND)
3 include_directories( 
4 ${KOPETE_INCLUDES} 
5 ${LIBV4L2_INCLUDE_DIR}
7 else (LIBV4L2_FOUND)
8 include_directories(
9 ${KOPETE_INCLUDES}
11 endif (LIBV4L2_FOUND)
13 ########### next target ###############
15 set(kopete_videodevice_LIB_SRCS 
16    videodevice.cpp 
17    videoinput.cpp 
18    dummyvideodevice.cpp
19    videodevicevector.cpp
20    videodevicepool.cpp 
21    videodevicemodelpool.cpp
22    bayer.cpp
23    sonix_compress.cpp )
25 kde4_add_library(kopete_videodevice SHARED ${kopete_videodevice_LIB_SRCS})
27 if (LIBV4L2_FOUND)
28 target_link_libraries(kopete_videodevice ${QT_QTGUI_LIBRARY} ${KDE4_KDECORE_LIBS} ${KDE4_SOLID_LIBS} ${LIBV4L2_LIBRARY})
29 else (LIBV4L2_FOUND)
30 target_link_libraries(kopete_videodevice ${QT_QTGUI_LIBRARY} ${KDE4_KDECORE_LIBS} ${KDE4_SOLID_LIBS})
31 endif (LIBV4L2_FOUND)
33 set_target_properties(kopete_videodevice PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
34 install(TARGETS kopete_videodevice ${INSTALL_TARGETS_DEFAULT_ARGS})
37 ########### next target ###############
40 ########### install files ###############