Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
a7660331a
tesseract
提交
11b244f6
T
tesseract
项目概览
a7660331a
/
tesseract
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
tesseract
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
11b244f6
编写于
4月 20, 2017
作者:
E
Egor Pugin
提交者:
GitHub
4月 20, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #831 from aleksey-nikolaev/cmake-install
Cmake install
上级
e18a8029
be747a50
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
97 addition
and
6 deletion
+97
-6
CMakeLists.txt
CMakeLists.txt
+85
-6
tesseract.pc.cmake
tesseract.pc.cmake
+12
-0
未找到文件。
CMakeLists.txt
浏览文件 @
11b244f6
...
...
@@ -119,12 +119,7 @@ include(Configure)
configure_file
(
${
AUTOCONFIG_SRC
}
${
AUTOCONFIG
}
@ONLY
)
set
(
INCLUDE_DIR
${
CMAKE_SOURCE_DIR
}
/api
${
CMAKE_SOURCE_DIR
}
/ccmain
${
CMAKE_SOURCE_DIR
}
/ccstruct
${
CMAKE_SOURCE_DIR
}
/ccutil
)
set
(
INCLUDE_DIR
"
${
CMAKE_INSTALL_PREFIX
}
/include"
"
${
CMAKE_INSTALL_PREFIX
}
/include/tesseract"
)
configure_file
(
${
CMAKE_SOURCE_DIR
}
/cmake/templates/TesseractConfig-version.cmake.in
...
...
@@ -270,4 +265,88 @@ if (BUILD_TRAINING_TOOLS)
add_subdirectory
(
training
)
endif
()
get_target_property
(
tesseract_NAME libtesseract NAME
)
get_target_property
(
tesseract_VERSION libtesseract VERSION
)
get_target_property
(
tesseract_OUTPUT_NAME libtesseract OUTPUT_NAME
)
configure_file
(
tesseract.pc.cmake
${
CMAKE_CURRENT_BINARY_DIR
}
/tesseract.pc @ONLY
)
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/tesseract.pc DESTINATION lib/pkgconfig
)
install
(
TARGETS tesseract RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib
)
install
(
TARGETS libtesseract EXPORT TesseractTargets RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib
)
install
(
EXPORT TesseractTargets DESTINATION cmake
)
install
(
FILES
${
CMAKE_BINARY_DIR
}
/TesseractConfig.cmake
${
CMAKE_BINARY_DIR
}
/TesseractConfig-version.cmake
DESTINATION cmake
)
install
(
FILES
# from api/makefile.am
api/apitypes.h
api/baseapi.h
api/capi.h
api/renderer.h
#from arch/makefile.am
arch/dotproductavx.h
arch/dotproductsse.h
arch/simddetect.h
#from ccmain/makefile.am
ccmain/thresholder.h
ccmain/ltrresultiterator.h
ccmain/pageiterator.h
ccmain/resultiterator.h
ccmain/osdetect.h
#from ccstruct/makefile.am
ccstruct/publictypes.h
#from ccutil/makefile.am
ccutil/basedir.h
ccutil/errcode.h
ccutil/fileerr.h
ccutil/genericvector.h
ccutil/helpers.h
ccutil/host.h
ccutil/memry.h
ccutil/ndminx.h
ccutil/params.h
ccutil/ocrclass.h
ccutil/platform.h
ccutil/serialis.h
ccutil/strngs.h
ccutil/tesscallback.h
ccutil/unichar.h
ccutil/unicharcompress.h
ccutil/unicharmap.h
ccutil/unicharset.h
#from lstm/makefile.am
lstm/convolve.h
lstm/ctc.h
lstm/fullyconnected.h
lstm/functions.h
lstm/input.h
lstm/lstm.h
lstm/lstmrecognizer.h
lstm/lstmtrainer.h
lstm/maxpool.h
lstm/networkbuilder.h
lstm/network.h
lstm/networkio.h
lstm/networkscratch.h
lstm/parallel.h
lstm/plumbing.h
lstm/recodebeam.h
lstm/reconfig.h
lstm/reversed.h
lstm/series.h
lstm/static_shape.h
lstm/stridemap.h
lstm/tfnetwork.h
lstm/weightmatrix.h
#${CMAKE_BINARY_DIR}/src/endianness.h
DESTINATION include/tesseract
)
###############################################################################
tesseract.pc.cmake
0 → 100644
浏览文件 @
11b244f6
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=
${
prefix
}
/bin
libdir=
${
prefix
}
/lib
includedir=
${
prefix
}
/include
Name: @tesseract_NAME@
Description: An OCR Engine that was developed at HP Labs between 1985 and 1995... and now at Google.
URL: https://github.com/tesseract-ocr/tesseract
Version: @tesseract_VERSION@
Libs: -L
${
libdir
}
-l@tesseract_OUTPUT_NAME@
Libs.private:
Cflags: -I
${
includedir
}
-I
${
includedir
}
/tesseract
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录