updte build system

This commit is contained in:
2021-08-02 21:46:49 +08:00
parent 8de1ea7075
commit 83c03e5231
3 changed files with 9 additions and 17 deletions

View File

@@ -26,7 +26,7 @@ macro(add_tools name)
# 链接动态库
target_link_libraries(${name} PUBLIC magtess)
# 将可执行程序安装到bin
install(TARGETS ${name} RUNTIME DESTINATION bin)
install(TARGETS ${name} RUNTIME DESTINATION sbin)
endmacro()
# 添加tools
@@ -44,4 +44,4 @@ set_target_properties(tessutil_magnetize_model PROPERTIES INSTALL_RPATH ${CMAKE_
# 链接动态库
target_link_libraries(tessutil_magnetize_model PUBLIC magtess)
# 将可执行程序安装到bin
install(TARGETS tessutil_magnetize_model RUNTIME DESTINATION bin)
install(TARGETS tessutil_magnetize_model RUNTIME DESTINATION sbin)