-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
54 lines (44 loc) · 1.65 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
cmake_minimum_required(VERSION 3.20)
project(screenreclib)
set(CMAKE_CXX_STANDARD 17)
if(WIN32)
link_directories(C:\\Users\\aless\\Desktop\\ffmpeg-4.4-full_build-shared\\ffmpeg-4.4-full_build-shared\\lib)
include_directories(C:\\Users\\aless\\Desktop\\ffmpeg-4.4-full_build-shared\\ffmpeg-4.4-full_build-shared\\include)
endif()
if(APPLE)
link_directories(/usr/local/Cellar/ffmpeg/5.0.1_2/lib)
include_directories(/usr/local/Cellar/ffmpeg/5.0.1_2/include)
endif()
if (UNIX AND NOT APPLE)
link_directories(/usr/local/ffmpeg/lib)
include_directories(/usr/local/ffmpeg/include)
endif()
include_directories(include)
#compile the library
add_library(screenreclib src/SRDecoder.cpp include/transcoding/SRDecoder.h src/SREncoder.cpp include/transcoding/SREncoder.h src/SRMediaOutput.cpp include/muxing/SRMediaOutput.h src/SRVideoInput.cpp include/demuxing/SRVideoInput.h src/SRAudioInput.cpp include/demuxing/SRAudioInput.h include/SRTools.h src/SRInput.cpp include/exceptions/SRExceptions.h src/SRVideoFilter.cpp include/transcoding/SRVideoFilter.h include/transcoding/SRAudioFilter.h src/SRAudioFilter.cpp src/SRRecorder.cpp include/SRRecorder.h)
if (UNIX AND NOT APPLE)
target_link_libraries(screenreclib
avformat
avdevice
avfilter
avcodec
avutil
swscale
swresample
z
xcb
pulse
)
else()
target_link_libraries(
screenreclib
avformat
avutil
avdevice
avfilter
avcodec
swscale
#pthread
swresample
)
endif()