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

@@ -38,7 +38,7 @@ if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Linux")
target_link_libraries(tess_static m.a)
endif()
# 库的安装命令
# 库的安装命令 安装到/opt/lib
if(WIN32)
install(TARGETS tess DESTINATION lib)
install(TARGETS tess_static DESTINATION lib)
@@ -50,5 +50,5 @@ endif()
# 头文件安装命令
file(GLOB LIBTESS_HEAD *.h)
# 安装到/opt/include/tess
install(FILES ${LIBTESS_HEAD} DESTINATION include/tess)