new test cc_cblas (closes #95)

- extended math_libs.cmake for C headers detection
- static_linking test included
- no int64 in the cc_cblas test
- released allocated memory
- adaptated for MS Windows (OpenBLAS)
This commit is contained in:
Miro ILIAS
2015-08-30 17:23:07 +02:00
parent 48ad07e5d7
commit 7665b883ac
6 changed files with 71 additions and 2 deletions

View File

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