Created
April 30, 2012 00:17
-
-
Save yorikvanhavre/2554333 to your computer and use it in GitHub Desktop.
CMakeLists.txt for tumbler ffmpeg plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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