diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 00000000..d75e7431 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,7 @@ +cmake_minimum_required(VERSION 3.10) + +project(rnnoise) + +set(CMAKE_CXX_STANDARD 11) + +add_subdirectory( src ) \ No newline at end of file diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 00000000..73d13557 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,17 @@ +set (library_sources + denoise.c + rnn.c + rnn_data.c + rnn_reader.c + pitch.c + kiss_fft.c + celt_lpc.c +) + +add_library(rnnoise SHARED ${library_sources}) +include_directories(rnnoise ../include) +add_library(rnnoise_static ${library_sources}) +include_directories(rnnoise_static ../include) +set_target_properties(rnnoise_static PROPERTIES OUTPUT_NAME rnnoise) + +