CMakeLists.txt
834 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
35
36
37
38
cmake_minimum_required(VERSION 3.6)
set(lib_name tremolo)
set(target_name ext_${lib_name})
project(${lib_name})
set(${target_name}_src
./Tremolo/bitwise.c
./Tremolo/codebook.c
./Tremolo/dsp.c
./Tremolo/floor0.c
./Tremolo/floor1.c
./Tremolo/floor_lookup.c
./Tremolo/framing.c
./Tremolo/mapping0.c
./Tremolo/mdct.c
./Tremolo/misc.c
./Tremolo/res012.c
./Tremolo/treminfo.c
./Tremolo/vorbisfile.c
)
add_library(${target_name} STATIC
${${target_name}_src}
)
target_compile_definitions(${target_name} PRIVATE ONLY_C)
target_include_directories(${target_name} PUBLIC .)
set_target_properties(${target_name}
PROPERTIES
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
FOLDER "External"
LINKER_LANGUAGE C
)