-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
68 lines (64 loc) · 1.42 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
cmake_minimum_required(VERSION 3.7)
project(mp4)
add_definitions(-D CONFIG_HAVE_ASSERT_H)
set(CMAKE_CXX_STANDARD 11)
#set(CMAKE_BUILD_TYPE Release)
set(SOURCE_FILES
results.cc
atomfactory.cc
atom.cc
bytestream.cc
character.cc
utils.cc
databuffer.cc
container.cc
file.cc
url.cc
ftyp.cc
stdfilebytestream.cc
moov.cc
mvhd.cc
trak.cc
tkhd.cc
track.cc
mdhd.cc
hdlr.cc
vmhd.cc
smhd.cc
dref.cc
sample.cc
sampletable.cc
sampledescription.cc
sample_entry.cc
synthetic_sampletable.cc
stsd.cc
debug.cc
stts.cc
stsc.cc
stsz.cc
stco.cc
stss.cc
co64.cc
ctts.cc
avc_sample_description.cc
avcc.cc
atom_sampletable.cc
stz2.cc
avc_parser.cc
nal_parser.cc
movie.cc
esds.cc
expandable.cc
descriptor_factory.cc
decoder_config_descriptor.cc
decoder_specificinfo_descriptor.cc
adts_parser.cc
bit_stream.cc
sl_config_descriptor.cc
mp4_audio_info.cc
es_descriptor.cc
sample_source.cpp log.h)
add_library(mp4 ${SOURCE_FILES})
string(TOLOWER sample binary_name)
add_executable(${binary_name} main.cc)
target_link_libraries(${binary_name} mp4)