mirror of
https://github.com/csukuangfj/kaldifeat.git
synced 2025-08-09 01:52:39 +00:00
Update CMakeLists.txt so that kaldifeat can be included in k2.
This commit is contained in:
parent
5e1a9b853d
commit
b5c19185ea
@ -32,12 +32,15 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules)
|
||||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
|
||||
|
||||
|
||||
option(BUILD_TESTS "Whether to build tests or not" ON)
|
||||
option(kaldifeat_BUILD_TESTS "Whether to build tests or not" ON)
|
||||
|
||||
if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
|
||||
include(pybind11)
|
||||
endif()
|
||||
|
||||
include(torch)
|
||||
|
||||
if(BUILD_TESTS)
|
||||
if(kaldifeat_BUILD_TESTS)
|
||||
include(googletest)
|
||||
enable_testing()
|
||||
endif()
|
||||
|
@ -36,7 +36,7 @@ function(kaldifeat_add_test source)
|
||||
)
|
||||
endfunction()
|
||||
|
||||
if(BUILD_TESTS)
|
||||
if(kaldifeat_BUILD_TESTS)
|
||||
# please sort the source files alphabetically
|
||||
set(test_srcs
|
||||
feature-window-test.cc
|
||||
|
Loading…
x
Reference in New Issue
Block a user