-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add voice activity detector module. (#33)
- Loading branch information
1 parent
28f7703
commit c1c8a96
Showing
4 changed files
with
392 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
find_package(PkgConfig QUIET) | ||
pkg_search_module(FVAD fvad) | ||
|
||
find_path(FVAD_INCLUDE_DIR | ||
NAMES fvad.h | ||
HINTS | ||
"${FVAD_INCLUDE_DIRS}" | ||
"${FVAD_HINTS}/include" | ||
PATHS /usr/local/include /usr/include | ||
) | ||
|
||
find_library(FVAD_LIBRARY | ||
NAME libfvad.a | ||
HINTS | ||
"${FVAD_LIBRARY_DIRS}" | ||
"${FVAD_HINTS}/lib" | ||
PATHS /usr/local/lib /usr/lib | ||
) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(FVAD DEFAULT_MSG FVAD_LIBRARY | ||
FVAD_INCLUDE_DIR) | ||
|
||
if(FVAD_FOUND) | ||
set( FVAD_INCLUDE_DIRS ${FVAD_INCLUDE_DIR} ) | ||
set( FVAD_LIBRARIES ${FVAD_LIBRARY} ) | ||
else() | ||
set( FVAD_INCLUDE_DIRS ) | ||
set( FVAD_LIBRARIES ) | ||
endif() | ||
|
||
mark_as_advanced( FVAD_INCLUDE_DIRS FVAD_LIBRARIES ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
project(fvad) | ||
|
||
set(SRCS fvad.c) | ||
|
||
if(STATIC) | ||
add_library(${PROJECT_NAME} OBJECT ${SRCS}) | ||
else() | ||
add_library(${PROJECT_NAME} MODULE ${SRCS}) | ||
endif() | ||
|
||
target_include_directories(${PROJECT_NAME} PRIVATE ${FVAD_INCLUDE_DIRS}) | ||
target_link_libraries(${PROJECT_NAME} PRIVATE ${FVAD_LIBRARIES}) |
Oops, something went wrong.