more work on lapacke test
This commit is contained in:
@ -5,6 +5,9 @@ min_cmake_version: 2.8
|
||||
[cxx]
|
||||
source: ../../../modules/cxx.cmake
|
||||
|
||||
[cblas]
|
||||
source: ../../../modules/cblas.cmake
|
||||
|
||||
[lapacke]
|
||||
source: ../../../modules/lapacke.cmake
|
||||
|
||||
|
@ -1,7 +1,14 @@
|
||||
if(LAPACKE_FOUND)
|
||||
include_directories(${LAPACKE_INCLUDE_DIR})
|
||||
add_executable(example example.cpp)
|
||||
target_link_libraries(example ${LAPACKE_LIBRARIES})
|
||||
else()
|
||||
message(FATAL_ERROR "LAPACKE library not found")
|
||||
if(NOT CBLAS_FOUND)
|
||||
message(FATAL_ERROR "CBLAS not found")
|
||||
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})
|
||||
|
@ -1,6 +1,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "cblas.h"
|
||||
#include "lapacke.h"
|
||||
|
||||
int main()
|
||||
|
Reference in New Issue
Block a user