From 8a1adbb3cae07707c84227a5decee68826659ecf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Ulman?= <ulman@mpi-cbg.de> Date: Thu, 6 Oct 2016 20:36:33 +0200 Subject: [PATCH] Adjusted to obtain working Lapack-supported environment. --- CMakeLists.txt | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ed99db4..ac369c7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,12 +70,6 @@ SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Xlinker -defsym -Xlinker # REQUIRED LIBS #--------------- -# SAMPLE: -#find_path(INC_I3D "i3d/image3d.h") -#include_directories(${INC_I3D} ${INC_I3D}/i3d) -#find_library(LIB_I3DCORE "i3dcore") -#set(LIBS ${LIBS} ${LIB_I3DALGO} ${LIB_I3DCORE}) - # OpenGL... find_path(INC_GLUT "GL/glut.h") include_directories(${INC_GLUT}) @@ -97,16 +91,19 @@ find_library(LIB_GLUT "glut") set(LIBS ${LIBS} ${LIB_OPENGL} ${LIB_GLU} ${LIB_GLUT} ${LIB_GLEW}) # GSL library -find_library(LIB_GSL gsl) -set(LIBS ${LIBS} ${LIB_GSL}) -find_library(LIB_GSLCBLAS gslcblas) -set(LIBS ${LIBS} ${LIB_GSLCBLAS}) find_path(INC_GSL "gsl/gsl_randist.h") include_directories(${INC_GSL}) +find_library(LIB_GSL gsl) +find_library(LIB_GSLCBLAS gslcblas) +set(LIBS ${LIBS} ${LIB_GSL} ${LIB_GSLCBLAS}) # LAPACK library -find_library(LIB_LAPACK lapack) -set(LIBS ${LIBS} ${LIB_LAPACK}) +find_path(INC_LAPACK "lapacke.h") +include_directories(${INC_LAPACK}) +find_library(LIB_BLAS blas) +#find_library(LIB_LAPACK lapack) +find_library(LIB_LAPACK liblapack.so.3) +set(LIBS ${LIBS} ${LIB_LAPACK} ${LIB_BLAS}) # i3dlibs libraries find_path(INC_I3D "i3d/image3d.h") -- GitLab