change install directory to /opt

This commit is contained in:
张壹
2021-07-31 16:07:15 +08:00
parent bc5671c373
commit e59ec89fed
3 changed files with 6 additions and 5 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)
# 将可执行程序安装到/usr/local/sbin
install(TARGETS ${name} RUNTIME DESTINATION sbin/tess)
# 将可执行程序安装到/opt/bin/tess
install(TARGETS ${name} RUNTIME DESTINATION bin/tess)
endmacro()
# 添加tools