CMakeLists.txt 1.73 KB
Newer Older
1 2 3 4
set(fleur_F77 ${fleur_F77}
)
set(fleur_F90 ${fleur_F90}
diagonalization/eigen_diag.F90
5 6 7
diagonalization/lapack_diag.F90
diagonalization/magma.F90
diagonalization/scalapack.F90
8
diagonalization/chase_diag.F90
9
diagonalization/symmetrize_matrix.f90
Daniel Wortmann's avatar
Daniel Wortmann committed
10
diagonalization/cusolver_diag.F90
11
diagonalization/elemental.F90
12 13
diagonalization/available_solvers.F90
diagonalization/writeout.F90
14
diagonalization/elpa_20180525_onenode.F90)
15
if (FLEUR_USE_ELPA_20180525)
16 17
 set(fleur_F90 ${fleur_F90} diagonalization/elpa_20180525.F90)
 set(diag_test_files diagonalization/elpa_20180525.F90)
18
else()
19 20
 set(fleur_F90 ${fleur_F90} diagonalization/elpa.F90)
 set(diag_test_files diagonalization/elpa.F90)
21
endif()
Daniel Wortmann's avatar
Daniel Wortmann committed
22

23
if (FLEUR_USE_HDF5)	
24
set(diag_test_files ${diag_test_files}
25
diagonalization/diag_test.F90
26 27 28 29
diagonalization/eigen_diag.F90
diagonalization/lapack_diag.F90
diagonalization/magma.F90
diagonalization/scalapack.F90
30 31
#diagonalization/chase_diag.F90
#diagonalization/symmetrize_matrix.f90
32 33 34 35
diagonalization/cusolver_diag.F90
diagonalization/elemental.F90
diagonalization/available_solvers.F90
diagonalization/writeout.F90
36 37 38 39 40 41 42 43
diagonalization/elpa_20180525_onenode.F90
types/types_mat.F90
types/types_mpimat.F90
types/types_gpumat.F90
types/types_setup.F90
io/io_matrix.F90
io/iomatrix_hdf.F90
)
44

Daniel Wortmann's avatar
Daniel Wortmann committed
45
add_executable(diag_test EXCLUDE_FROM_ALL ${diag_test_files}  )
46
target_link_libraries(diag_test ${FLEUR_LIBRARIES})
47
target_link_libraries(diag_test juDFT)
48 49 50 51 52
if (FLEUR_USE_MPI)
target_compile_definitions(diag_test PUBLIC ${FLEUR_MPI_DEFINITIONS})
else()
target_compile_definitions(diag_test PUBLIC ${FLEUR_DEFINITIONS})
endif()
53
set_target_properties(diag_test PROPERTIES Fortran_MODULE_DIRECTORY modules/diag_test COMPILE_OPTIONS -Imodules/diag_test RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/tools")
54

55
endif()