CMakeLists.txt 4.25 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
cmake_minimum_required(VERSION 3.0)
project(FLEUR LANGUAGES Fortran)

#These options should be adjusted
option(INPGEN_USE_DEBUG "Set CPP_DEBUG when compiling code" OFF)
#In addition you might want to set
#set(JUDFT_LIBRARIES "-lsomething")
#set(JUFDT_COMPILEOPTS "-r8")


Daniel Wortmann's avatar
Daniel Wortmann committed
11
set(FLEUR_SRC "/Users/wortmann/eclipse/fleur/")
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

add_executable(inpgen2
inpgen_help.f90
inpgen.f90
bravais_symm.f90
make_crystal.f90
make_spacegroup.f90
check_mt_radii.f90
make_atom_groups.f90
make_defaults.f90
process_lattice_namelist.f90
atompar.F90
film_sym.f90
make_atomic_defaults.f90
read_inpgen_input.f90
closure.f90
super_check.f90
Daniel Wortmann's avatar
Daniel Wortmann committed
29
make_kpoints.f90
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
read_old_inp.f90
old_inp/apws_dim.f90  
old_inp/dimen7.F90  
old_inp/dimens.F90  
old_inp/first_glance.f  
old_inp/fleur_init_old.F90  
old_inp/inped.F90  
old_inp/inpeig_dim.f90  
old_inp/inpnoco.F90  
old_inp/rw_inp.f90  
old_inp/setlomap.F90  
old_inp/setup.f90
old_inp/rw_noco.f90
old_inp/rw_symfile.f
old_inp/spg2set.f
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64

${FLEUR_SRC}/init/compile_descr.F90
${FLEUR_SRC}/global/constants.f90
${FLEUR_SRC}/global/sort.f90
${FLEUR_SRC}/math/inv3.f90
${FLEUR_SRC}/io/calculator.f
${FLEUR_SRC}/io/w_inpXML.f90
${FLEUR_SRC}/kpoints/divi.f
${FLEUR_SRC}/kpoints/bravais.f
${FLEUR_SRC}/kpoints/brzone2.f90
${FLEUR_SRC}/kpoints/kpttet.f
${FLEUR_SRC}/kpoints/kptmop.f
${FLEUR_SRC}/kpoints/ordstar.f
${FLEUR_SRC}/kpoints/fulstar.f
${FLEUR_SRC}/kpoints/tetcon.f
${FLEUR_SRC}/kpoints/kvecon.f
${FLEUR_SRC}/kpoints/gen_bz.F90
${FLEUR_SRC}/kpoints/kprep.f

${FLEUR_SRC}/math/util.F
65 66 67 68
${FLEUR_SRC}/math/matmul.f
${FLEUR_SRC}/init/strgn_dim.F
${FLEUR_SRC}/init/spgrot.f
${FLEUR_SRC}/init/convn_dim.f
69 70 71



72
${FLEUR_SRC}/types/types_mat.F90
73
${FLEUR_SRC}/types/types_xcpot_inbuild_nofunction.F90
74
${FLEUR_SRC}/types/types_xcpot.F90
75
${FLEUR_SRC}/types/types_xcpot_data.F90
76 77
${FLEUR_SRC}/types/types_xcpot_libxc.F90
${FLEUR_SRC}/types/types_mpi.F90
Daniel Wortmann's avatar
Daniel Wortmann committed
78
${FLEUR_SRC}/types/types_stars.f90
79 80
${FLEUR_SRC}/types/types_atoms.F90
${FLEUR_SRC}/types/types_lapw.F90
81
${FLEUR_SRC}/types/types_sphhar.f90
82 83 84
${FLEUR_SRC}/types/types_tlmplm.F90
${FLEUR_SRC}/types/types_misc.F90
${FLEUR_SRC}/types/types_mpimat.F90
85
${FLEUR_SRC}/types/types_potden.F90
Daniel Wortmann's avatar
Daniel Wortmann committed
86
${FLEUR_SRC}/types/types_forcetheo.F90
87 88 89 90 91 92
${FLEUR_SRC}/types/types_kpts.f90
${FLEUR_SRC}/types/types_enpara.F90
${FLEUR_SRC}/types/types_setup.F90
${FLEUR_SRC}/types/types_usdus.F90
${FLEUR_SRC}/types/types_cdnval.f90
${FLEUR_SRC}/types/types_field.F90
93
${FLEUR_SRC}/types/types_regionCharges.f90
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
${FLEUR_SRC}/types/types_dos.f90
${FLEUR_SRC}/types/types_denCoeffsOffdiag.f90
${FLEUR_SRC}/types/types_gpumat.F90
${FLEUR_SRC}/types/types_econfig.F90
${FLEUR_SRC}/types/types_cell.f90
${FLEUR_SRC}/types/types_sym.f90
${FLEUR_SRC}/types/types_input.f90
${FLEUR_SRC}/types/types_sliceplot.f90
${FLEUR_SRC}/types/types_oneD.f90
${FLEUR_SRC}/types/types_hybrid.f90
${FLEUR_SRC}/types/types_noco.f90
${FLEUR_SRC}/types/types_banddos.f90
${FLEUR_SRC}/types/types_vacuum.f90

${FLEUR_SRC}/io/nocoInputCheck.F90
${FLEUR_SRC}/eigen/orthoglo.F90
${FLEUR_SRC}/math/ylm4.F90
${FLEUR_SRC}/cdn/slab_dim.f90  
${FLEUR_SRC}/cdn/slabgeom.f90
${FLEUR_SRC}/dos/nstm3.f90
${FLEUR_SRC}/cdn/int_21.f90  
${FLEUR_SRC}/cdn/int_21lo.f90
${FLEUR_SRC}/cdn_mt/rhomt21.f90 
${FLEUR_SRC}/cdn_mt/rhonmt21.f90
${FLEUR_SRC}/xc-pot/gaunt.f90
${FLEUR_SRC}/math/grule.f
${FLEUR_SRC}/init/ifft235.f
${FLEUR_SRC}/init/mod_symdata.f
${FLEUR_SRC}/init/inpeig.f90
${FLEUR_SRC}/kpoints/gkptwgt.f90
${FLEUR_SRC}/init/local_sym.f
${FLEUR_SRC}/init/lhcal.f
${FLEUR_SRC}/init/ptsym.f
${FLEUR_SRC}/math/gaussp.f
${FLEUR_SRC}/init/gtest.f
${FLEUR_SRC}/init/prp_xcfft_box.f
130 131 132 133 134 135 136 137 138
${FLEUR_SRC}/io/xmlOutput.F90
${FLEUR_SRC}/global/utility.F90
${FLEUR_SRC}/global/radsra.f
${FLEUR_SRC}/global/differ.f
${FLEUR_SRC}/global/soc_sym.f
${FLEUR_SRC}/global/ss_sym.f
${FLEUR_SRC}/math/inwint.f
${FLEUR_SRC}/math/outint.f
${FLEUR_SRC}/math/intgr.F90
Daniel Wortmann's avatar
Daniel Wortmann committed
139
${FLEUR_SRC}/global/find_enpara.f90
140 141 142
${FLEUR_SRC}/mpi/mpi_bc_tool.F90
${FLEUR_SRC}/math/d_wigner.F90
${FLEUR_SRC}/io/xsf_io.f90
143
${FLEUR_SRC}/init/boxdim.f
144 145 146 147 148 149 150 151 152
)

#Set module directories
include_directories("${CMAKE_CURRENT_BINARY_DIR}/modules/inpgen")
set_target_properties(inpgen2 PROPERTIES Fortran_MODULE_DIRECTORY modules/inpgen)
target_compile_definitions(inpgen2 PUBLIC ${FLEUR_DEFINITIONS})
target_link_libraries(inpgen2 ${FLEUR_LIBRARIES})
target_link_libraries(inpgen2 ${FLEUR_LINK_LIBRARIES})
target_link_libraries(inpgen2 juDFT)