Skip to content

Commit 34d6820

Browse files
committed
Add support for CMake
1 parent 9acc1e5 commit 34d6820

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

CMakeLists.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
cmake_minimum_required(VERSION 3.1)
2+
project(rnnoise)
3+
4+
# Get source files
5+
file(GLOB SOURCES "src/*.c" "src/*.h" "include/*.h")
6+
7+
# Compile the library
8+
add_library(rnnoise STATIC ${SOURCES})
9+
10+
# Include dirs
11+
target_include_directories(rnnoise PUBLIC
12+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
13+
$<INSTALL_INTERFACE:include>
14+
PRIVATE src)

0 commit comments

Comments
 (0)