forked from qiuxiang/aubiojs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
47 lines (43 loc) · 1.8 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
cmake_minimum_required(VERSION 3.6)
project(aubiojs)
set(source_files
${PROJECT_SOURCE_DIR}/aubio/src/onset/peakpicker.c
${PROJECT_SOURCE_DIR}/aubio/src/pitch/pitch.c
${PROJECT_SOURCE_DIR}/aubio/src/pitch/pitchfcomb.c
${PROJECT_SOURCE_DIR}/aubio/src/pitch/pitchmcomb.c
${PROJECT_SOURCE_DIR}/aubio/src/pitch/pitchschmitt.c
${PROJECT_SOURCE_DIR}/aubio/src/pitch/pitchspecacf.c
${PROJECT_SOURCE_DIR}/aubio/src/pitch/pitchyin.c
${PROJECT_SOURCE_DIR}/aubio/src/pitch/pitchyinfast.c
${PROJECT_SOURCE_DIR}/aubio/src/pitch/pitchyinfft.c
${PROJECT_SOURCE_DIR}/aubio/src/spectral/fft.c
${PROJECT_SOURCE_DIR}/aubio/src/spectral/ooura_fft8g.c
${PROJECT_SOURCE_DIR}/aubio/src/spectral/phasevoc.c
${PROJECT_SOURCE_DIR}/aubio/src/spectral/specdesc.c
${PROJECT_SOURCE_DIR}/aubio/src/spectral/statistics.c
${PROJECT_SOURCE_DIR}/aubio/src/tempo/beattracking.c
${PROJECT_SOURCE_DIR}/aubio/src/tempo/tempo.c
${PROJECT_SOURCE_DIR}/aubio/src/temporal/biquad.c
${PROJECT_SOURCE_DIR}/aubio/src/temporal/c_weighting.c
${PROJECT_SOURCE_DIR}/aubio/src/temporal/filter.c
${PROJECT_SOURCE_DIR}/aubio/src/utils/hist.c
${PROJECT_SOURCE_DIR}/aubio/src/utils/log.c
${PROJECT_SOURCE_DIR}/aubio/src/utils/scale.c
${PROJECT_SOURCE_DIR}/aubio/src/cvec.c
${PROJECT_SOURCE_DIR}/aubio/src/fvec.c
${PROJECT_SOURCE_DIR}/aubio/src/lvec.c
${PROJECT_SOURCE_DIR}/aubio/src/mathutils.c
${PROJECT_SOURCE_DIR}/src/fft.cc
${PROJECT_SOURCE_DIR}/src/tempo.cc
${PROJECT_SOURCE_DIR}/src/pitch.cc)
add_definitions(-DHAVE_CONFIG_H)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} \
-DEMSCRIPTEN_HAS_UNBOUND_TYPE_NAMES=0 \
-fno-exceptions -O3 \
-s MODULARIZE=1 \
-s EXPORT_NAME=Aubio \
-s NO_FILESYSTEM=1 \
--closure 1 --llvm-lto 1 --bind")
include_directories(src)
include_directories(aubio/src)
add_executable(aubio ${source_files})