update cmakelists

This commit is contained in:
张壹 2021-05-07 10:00:26 +08:00
parent 2d2067e931
commit 42ddba9d6a
2 changed files with 7 additions and 2 deletions

View File

@ -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) 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) if(WIN32)
install(TARGETS magtess DESTINATION lib) install(TARGETS magtess DESTINATION lib)

View File

@ -15,7 +15,7 @@ Functions matrix and vector multiplications.
#elif defined(__APPLE__) && defined(__MACH__) #elif defined(__APPLE__) && defined(__MACH__)
#include <Accelerate/Accelerate.h> #include <Accelerate/Accelerate.h>
#else #else
//
#endif #endif
/* Calculate magnetization vector in a coordinate system of a given point */ /* Calculate magnetization vector in a coordinate system of a given point */