2019-03-20 14:13:41 +02:00
|
|
|
#packages
|
|
|
|
find_package(GSL 2.0 REQUIRED)
|
|
|
|
find_package(BLAS REQUIRED)
|
|
|
|
find_package(LAPACK REQUIRED)
|
|
|
|
|
|
|
|
#includes
|
|
|
|
set (DIRS ${GSL_INCLUDE_DIRS} ${GSLCBLAS_INCLUDE_DIRS})
|
|
|
|
include_directories(${DIRS})
|
|
|
|
|
2019-03-19 16:33:44 +02:00
|
|
|
add_library (qpms translations.c tmatrices.c vecprint.c vswf.c wigner.c
|
2019-03-20 20:46:47 +02:00
|
|
|
lattices2d.c gaunt.c error.c legendre.c symmetries.c vecprint.c
|
2019-03-29 13:17:28 +02:00
|
|
|
bessel.c own_zgemm.c)
|
2019-03-19 16:33:44 +02:00
|
|
|
use_c99()
|
2019-03-20 14:13:41 +02:00
|
|
|
|
|
|
|
set(LIBS ${LIBS} ${GSL_LIBRARIES} ${GSLCBLAS_LIBRARIES})
|
|
|
|
|
|
|
|
target_link_libraries (qpms
|
|
|
|
gsl
|
|
|
|
lapack
|
|
|
|
blas
|
|
|
|
amos
|
|
|
|
)
|
2019-03-19 16:33:44 +02:00
|
|
|
target_include_directories (qpms PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|