update build system

This commit is contained in:
2021-08-01 08:29:16 +08:00
parent e59ec89fed
commit 065edf8dfd
4 changed files with 24 additions and 7 deletions

View File

@@ -22,8 +22,8 @@ macro(add_tools name)
set_target_properties(${name} PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
# 链接动态库
target_link_libraries(${name} PUBLIC tess)
# 将可执行程序安装到/opt/bin/tess
install(TARGETS ${name} RUNTIME DESTINATION bin/tess)
# 将可执行程序安装到bin
install(TARGETS ${name} RUNTIME DESTINATION bin)
endmacro()
# 添加tools