mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
84d1b2ae3a
This allows to support QNX.
22 lines
627 B
CMake
22 lines
627 B
CMake
project(EigenBlas)
|
|
|
|
add_custom_target(blas)
|
|
|
|
set(EigenBlas_SRCS single.cpp double.cpp complex_single.cpp complex_double.cpp xerbla.cpp)
|
|
|
|
add_library(eigen_blas_static ${EigenBlas_SRCS})
|
|
add_library(eigen_blas SHARED ${EigenBlas_SRCS})
|
|
|
|
if(EIGEN_STANDARD_LIBRARIES_TO_LINK_TO)
|
|
target_link_libraries(eigen_blas_static ${EIGEN_STANDARD_LIBRARIES_TO_LINK_TO})
|
|
target_link_libraries(eigen_blas ${EIGEN_STANDARD_LIBRARIES_TO_LINK_TO})
|
|
endif()
|
|
|
|
add_dependencies(blas eigen_blas eigen_blas_static)
|
|
|
|
install(TARGETS eigen_blas
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib)
|
|
|