update cmakelists

This commit is contained in:
2021-09-10 13:25:56 +08:00
parent 5ad4c9c025
commit edb1a853ad
3 changed files with 3 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ macro(add_tools name)
# 添加可执行程序名称
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)
# 将可执行程序安装到/opt/bin/tess