-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
36 lines (27 loc) · 1.27 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
cmake_minimum_required(VERSION 3.10)
project(Tabuli CXX)
find_package(PkgConfig REQUIRED)
pkg_check_modules(SndFile REQUIRED IMPORTED_TARGET sndfile)
pkg_check_modules(FFTW3 REQUIRED IMPORTED_TARGET fftw3f)
find_package(Eigen3 REQUIRED)
set(ABSL_PROPAGATE_CXX_STD YES)
add_subdirectory(third_party/absl EXCLUDE_FROM_ALL)
add_executable(driver_model driver_model/driver_model.cc)
target_link_libraries(driver_model PkgConfig::SndFile)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mavx2")
add_library(fourier_bank speaker_experiments/fourier_bank.h speaker_experiments/fourier_bank.cc)
target_link_libraries(fourier_bank
PkgConfig::SndFile
absl::flags
absl::flags_parse
absl::log
absl::log_internal_check_impl
)
foreach (experiment IN ITEMS angular emphasizer revolve spectrum_similarity two_to_three virtual_speakers identity_sliding_fft audio_diff)
add_executable(${experiment} speaker_experiments/${experiment}.cc)
target_link_libraries(${experiment} PkgConfig::SndFile absl::flags absl::flags_parse absl::log absl::log_internal_check_impl fourier_bank)
endforeach ()
target_link_libraries(angular PkgConfig::FFTW3)
target_link_libraries(spectrum_similarity PkgConfig::FFTW3)
target_link_libraries(two_to_three PkgConfig::FFTW3)
target_link_libraries(virtual_speakers Eigen3::Eigen)