~ubuntu-branches/ubuntu/natty/kdemultimedia/natty-proposed

« back to all changes in this revision

Viewing changes to ffmpegthumbs/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Debian Qt/KDE Maintainers
  • Date: 2011-05-26 02:41:36 UTC
  • mfrom: (0.2.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 108.
  • Revision ID: james.westby@ubuntu.com-20110526024136-jjwsigfy402jhupm
Tags: upstream-4.6.3
ImportĀ upstreamĀ versionĀ 4.6.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include_directories(
 
2
    ${CMAKE_CURRENT_BINARY_DIR}
 
3
    ${PC_AVCODEC_INCLUDEDIR}
 
4
    ${PC_AVFORMAT_INCLUDEDIR}
 
5
    ${FFMPEG_INCLUDE_DIR}
 
6
    )
 
7
 
 
8
# Certain versions of FFMPEG need this to be defined
 
9
SET( CMAKE_CXX_FLAGS "-D __STDC_CONSTANT_MACROS" )
 
10
 
 
11
set( ffmpegthumbs_PART_SRCS
 
12
  ffmpegthumbnailer.cpp
 
13
  ffmpegthumbnailer/filmstripfilter.cpp
 
14
  ffmpegthumbnailer/moviedecoder.cpp
 
15
  ffmpegthumbnailer/imagewriter.cpp
 
16
  ffmpegthumbnailer/videothumbnailer.cpp
 
17
)
 
18
 
 
19
kde4_add_plugin(ffmpegthumbs ${ffmpegthumbs_PART_SRCS})
 
20
 
 
21
target_link_libraries(ffmpegthumbs  ${KDE4_KIO_LIBS} ${AVUTIL_LIBRARIES} ${AVFORMAT_LIBRARIES} ${AVCODEC_LIBRARIES} ${SWSCALE_LIBRARIES} )
 
22
 
 
23
install(TARGETS ffmpegthumbs DESTINATION ${PLUGIN_INSTALL_DIR})
 
24
 
 
25
########### install files ###############
 
26
 
 
27
install(FILES  ffmpegthumbs.desktop DESTINATION ${SERVICES_INSTALL_DIR})
 
28
 
 
29
if (KDE4_BUILD_TESTS)
 
30
        add_subdirectory(tests)
 
31
endif (KDE4_BUILD_TESTS)