2
${CMAKE_CURRENT_BINARY_DIR}
3
${PC_AVCODEC_INCLUDEDIR}
4
${PC_AVFORMAT_INCLUDEDIR}
8
# Certain versions of FFMPEG need this to be defined
9
SET( CMAKE_CXX_FLAGS "-D __STDC_CONSTANT_MACROS" )
11
set( ffmpegthumbs_PART_SRCS
13
ffmpegthumbnailer/filmstripfilter.cpp
14
ffmpegthumbnailer/moviedecoder.cpp
15
ffmpegthumbnailer/imagewriter.cpp
16
ffmpegthumbnailer/videothumbnailer.cpp
19
kde4_add_plugin(ffmpegthumbs ${ffmpegthumbs_PART_SRCS})
21
target_link_libraries(ffmpegthumbs ${KDE4_KIO_LIBS} ${AVUTIL_LIBRARIES} ${AVFORMAT_LIBRARIES} ${AVCODEC_LIBRARIES} ${SWSCALE_LIBRARIES} )
23
install(TARGETS ffmpegthumbs DESTINATION ${PLUGIN_INSTALL_DIR})
25
########### install files ###############
27
install(FILES ffmpegthumbs.desktop DESTINATION ${SERVICES_INSTALL_DIR})
30
add_subdirectory(tests)
31
endif (KDE4_BUILD_TESTS)