update cmakelists
This commit is contained in:
parent
4da9ec4351
commit
a7f63525de
@ -39,6 +39,7 @@ target_link_libraries(magtess PUBLIC ${OpenBLAS_LIBRARIES})
|
||||
target_link_libraries(magtess_static ${OpenBLAS_LIBRARIES})
|
||||
if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Linux")
|
||||
target_link_libraries(magtess PUBLIC m)
|
||||
target_link_libraries(magtess PUBLIC openblas)
|
||||
endif()
|
||||
|
||||
set(CONFIG_FILE_PATH lib/cmake/${PROJECT_NAME})
|
||||
|
@ -1,3 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo stow --dir=/opt/stow --target=/usr/local magtess
|
||||
sudo stow --dir=/opt/stow --target=/usr/local -S magtess
|
@ -10,7 +10,7 @@ macro(add_tools name)
|
||||
# 添加可执行程序名称
|
||||
add_executable(${name} ${name}.cpp)
|
||||
# 设置安装后的动态库调用地址
|
||||
set_target_properties(${name} PROPERTIES INSTALL_RPATH ${PACKAGE_PREFIX_DIR}/lib)
|
||||
set_target_properties(${name} PROPERTIES INSTALL_RPATH /usr/local/lib)
|
||||
# 链接动态库
|
||||
target_link_libraries(${name} PUBLIC magtess)
|
||||
# 将可执行程序安装到bin
|
||||
@ -28,7 +28,7 @@ if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Linux" OR ${CMAKE_HOST_SYSTEM_NAME} STREQ
|
||||
# 添加可执行程序名称
|
||||
add_executable(tessutil_magnetize_model tessutil_magnetize_model.c)
|
||||
# 设置安装后的动态库调用地址
|
||||
set_target_properties(tessutil_magnetize_model PROPERTIES INSTALL_RPATH ${PACKAGE_PREFIX_DIR}/lib)
|
||||
set_target_properties(tessutil_magnetize_model PROPERTIES INSTALL_RPATH /usr/local/lib)
|
||||
# 链接动态库
|
||||
target_link_libraries(tessutil_magnetize_model PUBLIC magtess)
|
||||
# 将可执行程序安装到bin
|
||||
|
Loading…
Reference in New Issue
Block a user