Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
ad2fff9f
D
DeepSpeech
项目概览
PaddlePaddle
/
DeepSpeech
1 年多 前同步成功
通知
207
Star
8425
Fork
1598
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
245
列表
看板
标记
里程碑
合并请求
3
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
DeepSpeech
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
245
Issue
245
列表
看板
标记
里程碑
合并请求
3
合并请求
3
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
ad2fff9f
编写于
8月 11, 2021
作者:
H
Hui Zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix cmake
上级
d7ca8bda
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
43 addition
and
41 deletion
+43
-41
env.sh
env.sh
+1
-1
speechnn/CMakeLists.txt
speechnn/CMakeLists.txt
+38
-38
speechnn/cmake/third_party.cmake
speechnn/cmake/third_party.cmake
+1
-2
speechnn/cmake/third_party/absl.cmake
speechnn/cmake/third_party/absl.cmake
+1
-0
speechnn/cmake/third_party/libsndfile.cmake
speechnn/cmake/third_party/libsndfile.cmake
+1
-0
speechnn/cmake/third_party/openfst.cmake
speechnn/cmake/third_party/openfst.cmake
+1
-0
未找到文件。
env.sh
浏览文件 @
ad2fff9f
export
MAIN_ROOT
=
${
PWD
}
export
PATH
=
${
MAIN_ROOT
}
:
${
MAIN_ROOT
}
/utils:
${
PATH
}
export
PATH
=
${
MAIN_ROOT
}
:
${
MAIN_ROOT
}
/utils:
/usr/local/bin:
${
PATH
}
export
LC_ALL
=
C
# Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
...
...
speechnn/CMakeLists.txt
浏览文件 @
ad2fff9f
...
...
@@ -16,41 +16,41 @@ set(CMAKE_VERBOSE_MAKEFILE on)
set
(
CMAKE_CXX_STANDARD 14
)
# fc_patch dir
set
(
FETCHCONTENT_QUIET off
)
get_filename_component
(
fc_patch
"fc_patch"
REALPATH BASE_DIR
"
${
CMAKE_SOURCE_DIR
}
"
)
set
(
FETCHCONTENT_BASE_DIR
${
fc_patch
}
)
###############################################################################
# Option Configurations
###############################################################################
# option configurations
option
(
TEST_DEBUG
"option for debug"
OFF
)
###############################################################################
# Add local library
###############################################################################
# system lib
find_package
()
# if dir have CmakeLists.txt
add_subdirectory
()
# if dir do not have CmakeLists.txt
add_library
(
lib_name STATIC file.cc
)
target_link_libraries
(
lib_name item0 item1
)
add_dependencies
(
lib_name depend-target
)
###############################################################################
# Library installation
###############################################################################
install
()
###############################################################################
# Build binary file
###############################################################################
add_executable
()
target_link_libraries
()
#
#
fc_patch dir
#
set(FETCHCONTENT_QUIET off)
#
get_filename_component(fc_patch "fc_patch" REALPATH BASE_DIR "${CMAKE_SOURCE_DIR}")
#
set(FETCHCONTENT_BASE_DIR ${fc_patch})
#
#
#
#
##############################################################################
#
#
Option Configurations
#
#
##############################################################################
#
#
option configurations
#
option(TEST_DEBUG "option for debug" OFF)
#
#
#
#
##############################################################################
#
#
Add local library
#
#
##############################################################################
#
#
system lib
#
find_package()
#
#
if dir have CmakeLists.txt
#
add_subdirectory()
#
#
if dir do not have CmakeLists.txt
#
add_library(lib_name STATIC file.cc)
#
target_link_libraries(lib_name item0 item1)
#
add_dependencies(lib_name depend-target)
#
#
#
#
##############################################################################
#
#
Library installation
#
#
##############################################################################
#
install()
#
#
#
#
##############################################################################
#
#
Build binary file
#
#
##############################################################################
#
add_executable()
#
target_link_libraries()
#
speechnn/cmake/third_party.cmake
浏览文件 @
ad2fff9f
...
...
@@ -190,9 +190,8 @@ endif()
########################### include third_party according to flags ###############################
include
(
third_party/libsndfile
)
# download, build, install libsndfile
include
(
third_party/zlib
)
# download, build, install zlib
include
(
third_party/boost
)
# download boost
include
(
third_party/eigen
)
# download eigen3
include
(
third_party/threadpool
)
# download threadpool
include
(
third_party/threadpool
)
# download threadpool
speechnn/cmake/third_party/absl.cmake
浏览文件 @
ad2fff9f
cmake_minimum_required
(
VERSION 3.14
)
include
(
ExternalProject
)
include
(
FetchContent
)
FetchContent_Declare
(
...
...
speechnn/cmake/third_party/libsndfile.cmake
浏览文件 @
ad2fff9f
cmake_minimum_required
(
VERSION 3.14
)
include
(
ExternalProject
)
include
(
FetchContent
)
FetchContent_Declare
(
...
...
speechnn/cmake/third_party/openfst.cmake
浏览文件 @
ad2fff9f
cmake_minimum_required
(
VERSION 3.14
)
include
(
ExternalProject
)
include
(
FetchContent
)
FetchContent_Declare
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录