more work on lapacke test

This commit is contained in:
Radovan Bast
2015-09-18 09:34:46 +02:00
parent 6efc29457d
commit ffd128548f
4 changed files with 18 additions and 7 deletions

View File

@ -5,6 +5,9 @@ min_cmake_version: 2.8
[cxx] [cxx]
source: ../../../modules/cxx.cmake source: ../../../modules/cxx.cmake
[cblas]
source: ../../../modules/cblas.cmake
[lapacke] [lapacke]
source: ../../../modules/lapacke.cmake source: ../../../modules/lapacke.cmake

View File

@ -1,7 +1,14 @@
if(LAPACKE_FOUND) if(NOT CBLAS_FOUND)
include_directories(${LAPACKE_INCLUDE_DIR}) message(FATAL_ERROR "CBLAS not found")
add_executable(example example.cpp)
target_link_libraries(example ${LAPACKE_LIBRARIES})
else()
message(FATAL_ERROR "LAPACKE library not found")
endif() endif()
if(NOT LAPACKE_FOUND)
message(FATAL_ERROR "LAPACKE not found")
endif()
include_directories(${CBLAS_INCLUDE_DIR})
include_directories(${LAPACKE_INCLUDE_DIR})
add_executable(example example.cpp)
target_link_libraries(example ${LAPACKE_LIBRARIES})

View File

@ -1,6 +1,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include "cblas.h"
#include "lapacke.h" #include "lapacke.h"
int main() int main()

View File

@ -165,7 +165,7 @@ def test_fc_lapack():
def test_cxx_lapacke(): def test_cxx_lapacke():
configure_build_and_exe('cxx_lapacke', 'python setup.py --cxx=g++ --lapacke') configure_build_and_exe('cxx_lapacke', 'python setup.py --cxx=g++ --lapacke --cblas')
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------