update cmakelists
This commit is contained in:
@@ -33,6 +33,11 @@ set_target_properties(magtess_static PROPERTIES CLEAN_DIRECT_OUTPUT 1)
|
||||
# 设置动态库的版本号
|
||||
set_target_properties(magtess PROPERTIES VERSION 1.0 SOVERSION 1.0)
|
||||
|
||||
if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Linux")
|
||||
target_link_libraries(magtess PUBLIC openblas)
|
||||
target_link_libraries(magtess PUBLIC m)
|
||||
endif()
|
||||
|
||||
# 库的安装命令
|
||||
if(WIN32)
|
||||
install(TARGETS magtess DESTINATION lib)
|
||||
|
Reference in New Issue
Block a user