-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
81 lines (74 loc) · 1.67 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
cmake_minimum_required(VERSION 3.10)
project(ffmpeg_rtmp LANGUAGES CXX C)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(FFMPEG_PREFIX_PATH "/usr/local/Cellar/ffmpeg/6.0/")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
add_subdirectory(libs/listdevice)
add_subdirectory(libs/videodevice)
add_subdirectory(libs/videoencoder)
add_subdirectory(libs/audioencoder)
add_subdirectory(libs/audiodevice)
add_subdirectory(libs/audioresampler)
add_subdirectory(libs/rtmpwriter)
add_subdirectory(libs/videorescaler)
add_subdirectory(libs/timer)
add_subdirectory(libs/filereader)
add_subdirectory(libs/remotereader)
add_subdirectory(libs/imgoverlay)
add_subdirectory(libs/txtoverlay)
set(
CPP_SOURCE_FILES
main.cpp
)
add_executable(${PROJECT_NAME} ${CPP_SOURCE_FILES})
target_include_directories(
${PROJECT_NAME}
PUBLIC
libs/listdevice
libs/videodevice
libs/videoencoder
libs/audioencoder
libs/audiodevice
libs/audioresampler
libs/rtmpwriter
libs/videorescaler
libs/timer
libs/filereader
libs/remotereader
libs/imgoverlay
libs/txtoverlay
)
target_link_directories(
${PROJECT_NAME} PUBLIC
libs/listdevice
libs/videodevice
libs/videoencoder
libs/audioencoder
libs/audiodevice
libs/audioresampler
libs/rtmpwriter
libs/videorescaler
libs/timer
libs/filereader
libs/remotereader
libs/imgoverlay
libs/txtoverlay
)
target_link_libraries(
${PROJECT_NAME}
PUBLIC
listdevice
videodevice
videoencoder
audioencoder
audiodevice
audioresampler
rtmpwriter
videorescaler
timer
filereader
remotereader
imgoverlay
txtoverlay
)