change install directory to /opt
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user