Added LAPACK object files to interface CMakeLists.
This commit is contained in:
parent
5057a4b4df
commit
9e154aba58
|
@ -1,6 +1,7 @@
|
|||
|
||||
include_directories(${CMAKE_SOURCE_DIR})
|
||||
|
||||
if (NOT DEFINED NO_CBLAS)
|
||||
# TODO: Need to generate object files for S, D, C, Q and X - start with D for now.
|
||||
# The sources are the same, but there are additional preprocessor definitions depending on the precision (see Makefile.tail).
|
||||
|
||||
|
@ -43,6 +44,17 @@ add_library(DBLAS3OBJS OBJECT
|
|||
add_library(TRMM_OBJ OBJECT trsm.c)
|
||||
set_target_properties(TRMM_OBJ PROPERTIES COMPILE_DEFINITIONS "TRMM")
|
||||
|
||||
list(APPEND DBLAS_OBJS "DBLAS1OBJS;AMAX_OBJ;AMIN_OBJ;MIN_OBJ;DBLAS2OBJS;DBLAS3OBJS;TRMM_OBJ")
|
||||
list(APPEND DBLAS_OBJS "DBLAS1OBJS;DBLAS2OBJS;DBLAS3OBJS;AMAX_OBJ;AMIN_OBJ;MIN_OBJ;TRMM_OBJ")
|
||||
endif ()
|
||||
|
||||
if (NOT DEFINED NO_LAPACK)
|
||||
add_library(DLAPACK_OBJS OBJECT
|
||||
lapack/getrf.c lapack/getrs.c lapack/potrf.c lapack/getf2.c
|
||||
lapack/potf2.c lapack/laswp.c lapack/gesv.c lapack/lauu2.c
|
||||
lapack/lauum.c lapack/trti2.c lapack/trtri.c
|
||||
)
|
||||
list(APPEND DBLAS_OBJS "DLAPACK_OBJS")
|
||||
endif ()
|
||||
|
||||
set(DBLAS_OBJS ${DBLAS_OBJS} PARENT_SCOPE) # list append removes the scope from DBLAS_OBJS
|
||||
|
||||
|
|
Loading…
Reference in New Issue