forked from stepmania/stepmania
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeProject-vorbis.cmake
85 lines (75 loc) · 3.27 KB
/
CMakeProject-vorbis.cmake
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
83
84
85
set(VORBIS_DIR "${SM_EXTERN_DIR}/newvorbis")
list(APPEND VORBIS_SRC
"${VORBIS_DIR}/lib/analysis.c"
"${VORBIS_DIR}/lib/bitrate.c"
"${VORBIS_DIR}/lib/block.c"
"${VORBIS_DIR}/lib/codebook.c"
"${VORBIS_DIR}/lib/envelope.c"
"${VORBIS_DIR}/lib/floor0.c"
"${VORBIS_DIR}/lib/floor1.c"
"${VORBIS_DIR}/lib/info.c"
"${VORBIS_DIR}/lib/lookup.c"
"${VORBIS_DIR}/lib/lpc.c"
"${VORBIS_DIR}/lib/lsp.c"
"${VORBIS_DIR}/lib/mapping0.c"
"${VORBIS_DIR}/lib/mdct.c"
"${VORBIS_DIR}/lib/psy.c"
"${VORBIS_DIR}/lib/registry.c"
"${VORBIS_DIR}/lib/res0.c"
"${VORBIS_DIR}/lib/sharedbook.c"
"${VORBIS_DIR}/lib/smallft.c"
"${VORBIS_DIR}/lib/synthesis.c"
"${VORBIS_DIR}/lib/vorbisenc.c"
"${VORBIS_DIR}/lib/window.c")
list(APPEND VORBIS_HPP
"${VORBIS_DIR}/lib/backends.h"
"${VORBIS_DIR}/lib/bitrate.h"
"${VORBIS_DIR}/lib/codebook.h"
"${VORBIS_DIR}/include/vorbis/codec.h"
"${VORBIS_DIR}/lib/codec_internal.h"
"${VORBIS_DIR}/lib/envelope.h"
"${VORBIS_DIR}/lib/modes/floor_all.h"
"${VORBIS_DIR}/lib/books/floor/floor_books.h"
"${VORBIS_DIR}/lib/highlevel.h"
"${VORBIS_DIR}/lib/lookup.h"
"${VORBIS_DIR}/lib/lookup_data.h"
"${VORBIS_DIR}/lib/lpc.h"
"${VORBIS_DIR}/lib/lsp.h"
"${VORBIS_DIR}/lib/masking.h"
"${VORBIS_DIR}/lib/mdct.h"
"${VORBIS_DIR}/lib/misc.h"
"${VORBIS_DIR}/lib/os.h"
"${VORBIS_DIR}/lib/psy.h"
"${VORBIS_DIR}/lib/modes/psych_11.h"
"${VORBIS_DIR}/lib/modes/psych_16.h"
"${VORBIS_DIR}/lib/modes/psych_44.h"
"${VORBIS_DIR}/lib/modes/psych_8.h"
"${VORBIS_DIR}/lib/registry.h"
"${VORBIS_DIR}/lib/books/coupled/res_books_stereo.h"
"${VORBIS_DIR}/lib/books/uncoupled/res_books_uncoupled.h"
"${VORBIS_DIR}/lib/modes/residue_16.h"
"${VORBIS_DIR}/lib/modes/residue_44.h"
"${VORBIS_DIR}/lib/modes/residue_44u.h"
"${VORBIS_DIR}/lib/modes/residue_8.h"
"${VORBIS_DIR}/lib/scales.h"
"${VORBIS_DIR}/lib/modes/setup_11.h"
"${VORBIS_DIR}/lib/modes/setup_16.h"
"${VORBIS_DIR}/lib/modes/setup_22.h"
"${VORBIS_DIR}/lib/modes/setup_32.h"
"${VORBIS_DIR}/lib/modes/setup_44.h"
"${VORBIS_DIR}/lib/modes/setup_44u.h"
"${VORBIS_DIR}/lib/modes/setup_8.h"
"${VORBIS_DIR}/lib/modes/setup_X.h"
"${VORBIS_DIR}/lib/window.h")
source_group("Source Files" FILES ${VORBIS_SRC})
source_group("Header Files" FILES ${VORBIS_HPP})
add_library("vorbis" ${VORBIS_SRC} ${VORBIS_HPP})
set_property(TARGET "vorbis" PROPERTY FOLDER "External Libraries")
disable_project_warnings("vorbis")
list(APPEND VORBIS_INCLUDE_DIRS
"${VORBIS_DIR}/lib"
"${VORBIS_DIR}/include"
"${SM_EXTERN_DIR}/newogg/include")
target_include_directories("vorbis" PUBLIC ${VORBIS_INCLUDE_DIRS})
list(APPEND VORBIS_LINK_LIBS "ogg")
target_link_libraries("vorbis" ${VORBIS_LINK_LIBS})