Skip to content

Instantly share code, notes, and snippets.

@yorikvanhavre
Created April 30, 2012 00:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yorikvanhavre/2554333 to your computer and use it in GitHub Desktop.
Save yorikvanhavre/2554333 to your computer and use it in GitHub Desktop.
CMakeLists.txt for tumbler ffmpeg plugin
cmake_minimum_required ( VERSION 2.6 )
project ( tumbler-ffmpeg-thumbnailer )
INCLUDE( FindPkgConfig )
FIND_PACKAGE( GTK2 REQUIRED )
ADD_DEFINITIONS("`pkg-config --cflags --libs gtk+-2.0`")
ADD_DEFINITIONS("`pkg-config --cflags --libs tumbler-1`")
pkg_check_modules(PKG REQUIRED libgsf-1)
pkg_check_modules(FFMPEG_THUMBNAILER libffmpegthumbnailer)
include_directories( ${PKG_INCLUDE_DIRS} ${PROJECT_SOURCE_DIR} )
link_directories( ${PKG_LIBRARY_DIRS} )
message ("found libs: ${PKG_INCLUDE_DIRS}")
add_library( tumbler-ffmpeg-thumbnailer SHARED ffmpeg-thumbnailer.c ffmpeg-thumbnailer-provider.c ffmpeg-thumbnailer-plugin.c )
set_target_properties(tumbler-ffmpeg-thumbnailer PROPERTIES PREFIX "")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment