tmp update
This commit is contained in:
parent
a420401582
commit
d94594a0d9
@ -7,7 +7,7 @@ if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows")
|
|||||||
include_directories(${OpenBLAS_INCLUDE_DIRS})
|
include_directories(${OpenBLAS_INCLUDE_DIRS})
|
||||||
elseif(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Darwin")
|
elseif(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Darwin")
|
||||||
# set OpenBLAS directory manually
|
# set OpenBLAS directory manually
|
||||||
set(OpenBLAS_DIR /opt/homebrew/Cellar/openblas/0.3.20/lib/cmake/openblas)
|
set(OpenBLAS_DIR /opt/homebrew/Cellar/openblas/0.3.21/lib/cmake/openblas)
|
||||||
find_package(OpenBLAS REQUIRED)
|
find_package(OpenBLAS REQUIRED)
|
||||||
include_directories(${OpenBLAS_INCLUDE_DIRS})
|
include_directories(${OpenBLAS_INCLUDE_DIRS})
|
||||||
elseif(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Linux")
|
elseif(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Linux")
|
||||||
@ -34,6 +34,9 @@ set_target_properties(magtess PROPERTIES CLEAN_DIRECT_OUTPUT 1)
|
|||||||
set_target_properties(magtess_static PROPERTIES CLEAN_DIRECT_OUTPUT 1)
|
set_target_properties(magtess_static PROPERTIES CLEAN_DIRECT_OUTPUT 1)
|
||||||
# 设置动态库的版本号
|
# 设置动态库的版本号
|
||||||
set_target_properties(magtess PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR})
|
set_target_properties(magtess PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR})
|
||||||
|
# 设置动态库的运行搜索地址
|
||||||
|
set_target_properties(magtess PROPERTIES INSTALL_RPATH /usr/local/lib)
|
||||||
|
set_target_properties(magtess_static PROPERTIES INSTALL_RPATH /usr/local/lib)
|
||||||
|
|
||||||
target_link_libraries(magtess PUBLIC ${OpenBLAS_LIBRARIES})
|
target_link_libraries(magtess PUBLIC ${OpenBLAS_LIBRARIES})
|
||||||
target_link_libraries(magtess_static ${OpenBLAS_LIBRARIES})
|
target_link_libraries(magtess_static ${OpenBLAS_LIBRARIES})
|
||||||
|
Loading…
Reference in New Issue
Block a user