2009-10-02 18:45:24 +02:00
|
|
|
project(EigenBlas)
|
|
|
|
|
|
2009-09-27 17:48:53 -04:00
|
|
|
add_custom_target(blas)
|
2009-09-25 13:08:39 +02:00
|
|
|
|
2010-03-02 14:50:41 +01:00
|
|
|
set(EigenBlas_SRCS single.cpp double.cpp complex_single.cpp complex_double.cpp xerbla.cpp)
|
2009-09-25 13:08:39 +02:00
|
|
|
|
2010-03-24 19:34:18 +01:00
|
|
|
add_library(eigen_blas_static ${EigenBlas_SRCS})
|
|
|
|
|
add_library(eigen_blas SHARED ${EigenBlas_SRCS})
|
2010-04-19 11:19:22 -04:00
|
|
|
|
|
|
|
|
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()
|
|
|
|
|
|
2010-03-24 19:34:18 +01:00
|
|
|
add_dependencies(blas eigen_blas eigen_blas_static)
|
2009-09-25 13:08:39 +02:00
|
|
|
|
|
|
|
|
install(TARGETS eigen_blas
|
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
|
LIBRARY DESTINATION lib
|
|
|
|
|
ARCHIVE DESTINATION lib)
|
|
|
|
|
|