-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathCMakeLists.txt
82 lines (67 loc) · 2.64 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
cmake_minimum_required(VERSION 3.6.0)
if(WIN32)
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
link_directories( win/x86 )
include_directories( win/x86/include )
else()
link_directories( win )
include_directories( win/include )
endif()
include_directories( win/SDL2-2.24.1/include )
include_directories( FFmpeg )
add_library( ffmpegDll
SHARED
cmdutils.c ffmpeg.c ffmpeg_filter.c ffmpeg_hw.c ffmpeg_opt.c ffplay.c ffprobe.c unitybuf2.c
ffmpeg_mux.c opt_common.c )
target_link_libraries( ffmpegDll
avcodec-59 avdevice-59 avfilter-8 avformat-59 avutil-57 swresample-4 swscale-6
#SDL2
-static-libgcc -static-libstdc++)
#elseif(APPLE)
#
# link_directories( mac/lib )
#
# include_directories( mac/include )
# include_directories( FFmpeg )
#
# add_library( ffmpegDll
# SHARED
# cmdutils.c ffmpeg.c ffmpeg_filter.c ffmpeg_hw.c ffmpeg_opt.c /*ffplay.c*/ ffprobe.c )
#
# target_link_libraries( ffmpegDll
# avcodec avdevice avfilter avformat avutil swresample swscale )
else(WIN32)
set(CMAKE_SHARED_LINKER_FLAGS "-Wl,-Bsymbolic")
link_directories( linux/lib )
link_directories( /usr/lib )
link_directories( /usr/lib/x86_64-linux-gnu )
include_directories( FFmpeg )
include_directories( linux/include )
include_directories( /usr/include )
include_directories( win/SDL2-2.24.1/include )
add_library( ffmpegDll
SHARED
cmdutils.c ffmpeg.c ffmpeg_filter.c ffmpeg_hw.c ffmpeg_opt.c ffplay.c ffprobe.c unitybuf2.c
ffmpeg_mux.c opt_common.c )
target_link_libraries( ffmpegDll
avdevice avfilter avformat swresample swscale avcodec avutil
mp3lame aom gif gmp gnutls gnutlsxx hogweed lilv-0 ltdl nettle openh264 opus pcre pcrecpp pcreposix serd-0 sord-0 sratom-0
theora theoradec theoraenc vorbis vorbisenc vorbisfile vpx webpdecoder webpdemux webpmux webp yasm xml2 z zimg
#sndio
ogg
#lzma Xv
stdc++ dl mvec m c
#xcb-shm
#xcb
)
#find_package(ALSA REQUIRED)
#if (ALSA_FOUND)
# include_directories(${ALSA_INCLUDE_DIRS})
# target_link_libraries (ffmpegDll ${ALSA_LIBRARIES})
#endif(ALSA_FOUND)
#find_package(SDL2 REQUIRED)
#if (SDL2_FOUND)
# include_directories(${SDL2_INCLUDE_DIRS})
## target_link_libraries(ffmpegDll ${SDL2_LIBRARIES})
#endif(SDL2_FOUND)
endif(WIN32)