📄 cmakelists.txt
字号:
# sba CMake file; see http://www.cmake.org and # http://www.insightsoftwareconsortium.org/wiki/index.php/CMake_TutorialPROJECT(SBA)#CMAKE_MINIMUM_REQUIRED(VERSION 1.4)# f2c is sometimes equivalent to libF77 & libI77; in that case, set HAVE_F2C to 0SET(HAVE_F2C 1 CACHE BOOL "Do we have f2c or F77/I77?" )# the directory where the lapack/blas/f2c libraries resideSET(LAPACKBLAS_DIR /usr/lib CACHE PATH "Path to lapack/blas libraries")# actual names for the lapack/blas/f2c librariesSET(LAPACK_LIB lapack CACHE STRING "The name of the lapack library")SET(BLAS_LIB blas CACHE STRING "The name of the blas library")IF(HAVE_F2C) SET(F2C_LIB f2c CACHE STRING "The name of the f2c library")ELSE(HAVE_F2C) SET(F77_LIB libF77 CACHE STRING "The name of the F77 library") SET(I77_LIB libI77 CACHE STRING "The name of the I77 library")ENDIF(HAVE_F2C)########################## NO CHANGES BEYOND THIS POINT ########################### sba library source filesADD_LIBRARY(sba STATIC sba_levmar.c sba_levmar_wrap.c sba_lapack.c sba_crsm.c sba_chkjac.c sba.h sba_chkjac.h compiler.h)#ADD_SUBDIRECTORY(demo)SUBDIRS(demo)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -