update cmakelists

This commit is contained in:
2021-05-05 15:24:52 +08:00
parent f1cf25db22
commit 85de73131c
3 changed files with 13 additions and 13 deletions

View File

@@ -16,9 +16,9 @@ macro(add_tools name)
# 设置安装后的动态库调用地址
set_target_properties(${name} PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
# 链接动态库
target_link_libraries(${name} PUBLIC tesseroids)
target_link_libraries(${name} PUBLIC tess)
# 将可执行程序安装到/usr/local/sbin
install(TARGETS ${name} RUNTIME DESTINATION sbin/tesseroids)
install(TARGETS ${name} RUNTIME DESTINATION sbin/tess)
endmacro()
# 添加tools