update cmakelists
This commit is contained in:
parent
5ad4c9c025
commit
edb1a853ad
3
.gitignore
vendored
3
.gitignore
vendored
@ -53,4 +53,5 @@ dkms.conf
|
|||||||
|
|
||||||
build/
|
build/
|
||||||
.vscode/
|
.vscode/
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
*.sh
|
@ -1,3 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
sudo stow --dir=/opt/stow --target=/usr/local tess
|
|
@ -12,7 +12,7 @@ macro(add_tools name)
|
|||||||
# 添加可执行程序名称
|
# 添加可执行程序名称
|
||||||
add_executable(${name} ${name}.c)
|
add_executable(${name} ${name}.c)
|
||||||
# 设置安装后的动态库调用地址
|
# 设置安装后的动态库调用地址
|
||||||
set_target_properties(${name} PROPERTIES INSTALL_RPATH ${PACKAGE_PREFIX_DIR}/lib)
|
set_target_properties(${name} PROPERTIES INSTALL_RPATH /usr/local/lib)
|
||||||
# 链接动态库
|
# 链接动态库
|
||||||
target_link_libraries(${name} PUBLIC tess)
|
target_link_libraries(${name} PUBLIC tess)
|
||||||
# 将可执行程序安装到/opt/bin/tess
|
# 将可执行程序安装到/opt/bin/tess
|
||||||
|
Loading…
Reference in New Issue
Block a user