-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
34 lines (30 loc) · 822 Bytes
/
CMakeLists.txt
File metadata and controls
34 lines (30 loc) · 822 Bytes
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
cmake_minimum_required (VERSION 2.8.11)
project (spdif-decoder)
add_executable (spdif-decoder
codechandler.c
helper.c
myspdif.c
myspdifdec.c
resample.c
spdif-loop.c
)
SET(FFMPEG ${CMAKE_CURRENT_SOURCE_DIR}/../ffmpeg-4.3.1)
target_include_directories (spdif-decoder
PUBLIC ${FFMPEG}
)
FIND_LIBRARY(libavcodec avcodec ${FFMPEG}/libavcodec)
FIND_LIBRARY(libavformat avformat ${FFMPEG}/libavformat)
FIND_LIBRARY(libavdevice avdevice ${FFMPEG}/libavdevice)
FIND_LIBRARY(libavutil avutil ${FFMPEG}/libavutil)
FIND_LIBRARY(libswresample swresample ${FFMPEG}/libswresample)
FIND_LIBRARY(libavfilter avfilter ${FFMPEG}/libavfilter)
TARGET_LINK_LIBRARIES(spdif-decoder
${libavcodec}
${libavformat}
${libavdevice}
${libavutil}
${libswresample}
${libavfilter}
ao
m
)