adding lapacke.cmake stub

This commit is contained in:
Radovan Bast
2015-09-17 10:44:30 +02:00
parent e399058e37
commit 6efc29457d
5 changed files with 49 additions and 32 deletions

View File

@@ -1,13 +1,7 @@
if(LAPACK_FOUND)
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
#windows needs to find <lapacke.h> of openblas
include_directories($ENV{PATH})
else()
#ftravis-ci needs find <clapack.h> of ATLAS
include_directories(/usr/include/atlas)
endif()
if(LAPACKE_FOUND)
include_directories(${LAPACKE_INCLUDE_DIR})
add_executable(example example.cpp)
target_link_libraries(example ${MATH_LIBS})
target_link_libraries(example ${LAPACKE_LIBRARIES})
else()
message(FATAL_ERROR "LAPACK library not found for the test cc_lapacke!")
message(FATAL_ERROR "LAPACKE library not found")
endif()