adding a module for cblas

This commit is contained in:
Radovan Bast
2015-09-17 00:08:43 +02:00
parent c2d8abcca2
commit c0199ccd43
3 changed files with 84 additions and 9 deletions

View File

@ -8,8 +8,8 @@ source: ../../../modules/cc.cmake
[static]
source: ../../../modules/static_linking.cmake
[math_libs]
source: ../../../modules/math_libs.cmake
[cblas]
source: ../../../modules/cblas.cmake
[default_build_paths]
source: ../../../modules/default_build_paths.cmake

View File

@ -1,10 +1,7 @@
if(BLAS_FOUND)
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
#windows does not find cblas.h of openblas by default
include_directories($ENV{PATH})
endif()
if(CBLAS_FOUND)
include_directories(${CBLAS_INCLUDE_DIR})
add_executable(example example.c)
target_link_libraries(example ${MATH_LIBS})
target_link_libraries(example ${CBLAS_LIBRARIES})
else()
message(FATAL_ERROR "BLAS library not found for the test cc_cblas!")
message(FATAL_ERROR "CBLAS library not found")
endif()