Files_and_Targets.txt 4.14 KB
Newer Older
1 2
include_directories(include)

3 4
set(c_filesInpgen io/xml/inputSchema.h io/xml/dropInputSchema.c)
set(c_filesFleur io/xml/inputSchema.h io/xml/dropInputSchema.c io/xml/xmlInterfaceWrapper.c)
5

6 7
set(fleur_F90 main/fleur.F90)
set(fleur_F77 "")
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
include(eigen/CMakeLists.txt)
include(force/CMakeLists.txt)
include(main/CMakeLists.txt)
include(core/CMakeLists.txt)
include(eigen_secvar/CMakeLists.txt)
include(global/CMakeLists.txt)
include(io/CMakeLists.txt)
include(optional/CMakeLists.txt)
include(xc-pot/CMakeLists.txt)
include(cdn/CMakeLists.txt)
include(diagonalization/CMakeLists.txt)
include(eigen_soc/CMakeLists.txt)
include(juDFT/CMakeLists.txt)
include(math/CMakeLists.txt)
include(orbdep/CMakeLists.txt)
include(cdn_mt/CMakeLists.txt)
include(dos/CMakeLists.txt)
include(fermi/CMakeLists.txt)
include(init/CMakeLists.txt)
include(ldau/CMakeLists.txt)
include(mix/CMakeLists.txt)
include(vgen/CMakeLists.txt)
30
include(inpgen/CMakeLists.txt)
31
include(docs/CMakeLists.txt)
32
include(tests/CMakeLists.txt)
Daniel Wortmann's avatar
Daniel Wortmann committed
33
include(mpi/CMakeLists.txt)
34
include(hybrid/CMakeLists.txt)
Daniel Wortmann's avatar
Daniel Wortmann committed
35
include(eels/CMakeLists.txt)
36
include(types/CMakeLists.txt)
37 38
include(wannier/CMakeLists.txt)
include(wannier/uhu/CMakeLists.txt)
39
include(forcetheorem/CMakeLists.txt)
40 41

set(inpgen_F77 
42
inpgen/element.f inpgen/atom_input.f inpgen/crystal.f inpgen/lattice2.f inpgen/setab.f inpgen/super_check.f
43 44 45
inpgen/atom_sym.f inpgen/generator.f inpgen/read_record.f inpgen/soc_or_ssdw.f inpgen/symproperties.f
inpgen/bravais_symm.f  inpgen/set_atom_core.f inpgen/spg_gen.f global/triang.f
inpgen/closure.f inpgen/lapw_input.f  inpgen/struct_input.f inpgen/write_struct.f
46
io/calculator.f global/ss_sym.f global/soc_sym.f math/inv3.f  io/rw_symfile.f
47 48
global/sort.f init/kptgen_hybrid.f init/od_kptsgen.f init/bravais.f init/divi.f init/brzone.f
init/kptmop.f init/kpttet.f init/bandstr1.F init/ordstar.f init/fulstar.f init/kprep.f
49
init/tetcon.f init/kvecon.f init/boxdim.f math/ylm4.f global/radsra.f math/intgr.F global/differ.f math/inwint.f
50 51
 math/outint.f
 )
52

53
set(inpgen_F90  ${inpgen_F90} global/constants.f90 io/xsf_io.f90
Daniel Wortmann's avatar
Daniel Wortmann committed
54
eigen/vec_for_lo.f90 eigen/orthoglo.F90 juDFT/usage_data.F90
55
global/enpara.f90 global/chkmt.f90 inpgen/inpgen.f90 inpgen/set_inp.f90 inpgen/inpgen_help.f90 io/rw_inp.f90 juDFT/juDFT.F90 global/find_enpara.f90
56
juDFT/info.F90 juDFT/stop.F90 juDFT/args.F90 juDFT/time.F90 juDFT/init.F90 juDFT/sysinfo.F90 io/w_inpXML.f90 init/julia.f90 global/utility.F90 
57
init/compile_descr.F90 init/kpoints.f90 io/xmlOutput.F90 init/brzone2.f90 cdn/slab_dim.f90 cdn/slabgeom.f90 dos/nstm3.f90)
58 59 60 61 62 63 64 65

set(fleur_SRC ${fleur_F90} ${fleur_F77})

set_source_files_properties(${fleur_F90} PROPERTIES Fortran_FORMAT FREE)
set_source_files_properties(${fleur_F77} PROPERTIES Fortran_FORMAT FIXED)
set_source_files_properties(${inpgen_F90} PROPERTIES Fortran_FORMAT FREE)
set_source_files_properties(${inpgen_F77} PROPERTIES Fortran_FORMAT FIXED)

66 67 68 69 70 71 72 73 74 75 76
if (${FLEUR_USE_SERIAL})
   #Serial executables
   add_executable(fleur ${fleur_SRC} ${c_filesFleur})
   target_compile_definitions(fleur PUBLIC ${FLEUR_DEFINITIONS})
   target_link_libraries(fleur ${FLEUR_LIBRARIES})
   set_target_properties(fleur PROPERTIES Fortran_MODULE_DIRECTORY fleur_modules COMPILE_OPTIONS -Ifleur_modules)
   #inpgen executable
   add_executable(inpgen ${inpgen_F77} ${inpgen_F90} ${juDFT_SRC_F90} ${c_filesInpgen})
   target_compile_definitions(inpgen PUBLIC ${FLEUR_DEFINITIONS})
   target_link_libraries(inpgen ${FLEUR_LIBRARIES})
   set_target_properties(inpgen PROPERTIES Fortran_MODULE_DIRECTORY inpgen_modules COMPILE_OPTIONS -Iinpgen_modules)
77 78
endif()
#parallel executables
79
if(${FLEUR_USE_MPI})
80
  #fleur_MPI
81 82
  add_executable(fleur_MPI ${juDFT_HDF} ${juDFT_SRC_F90} ${fleur_SRC} ${c_filesFleur} ${fleur_SRC_MPI})
  target_compile_definitions(fleur_MPI PUBLIC ${FLEUR_MPI_DEFINITIONS})
83
  target_link_libraries(fleur_MPI ${FLEUR_LIBRARIES})
84 85 86 87 88
  set_target_properties(fleur_MPI PROPERTIES Fortran_MODULE_DIRECTORY fleur_MPI_modules COMPILE_OPTIONS -Ifleur_MPI_modules)
endif ()



89 90
if (${FLEUR_USE_SERIAL})        
install(TARGETS fleur inpgen 
91 92 93
        CONFIGURATIONS Release
        DESTINATION bin)
endif()
94
if (${FLEUR_USE_MPI})        
95
install(TARGETS fleur_MPI 
96 97 98
        CONFIGURATIONS Release
        DESTINATION bin)
endif()