Files_and_Targets.txt 2.87 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
if(FLEUR_USE_CUSOLVER)
6 7
  set(c_filesFleur ${c_filesFleur} diagonalization/cusolver.c)
endif()
8

9 10
set(fleur_F90 main/fleur.F90)
set(fleur_F77 "")
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
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(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)
32
include(inpgen/CMakeLists.txt)
33
include(docs/CMakeLists.txt)
Daniel Wortmann's avatar
Daniel Wortmann committed
34
include(mpi/CMakeLists.txt)
35
include(hybrid/CMakeLists.txt)
Daniel Wortmann's avatar
Daniel Wortmann committed
36
include(eels/CMakeLists.txt)
Daniel Wortmann's avatar
Daniel Wortmann committed
37
include(types/CMakeLists.txt)
38 39
include(wannier/CMakeLists.txt)
include(wannier/uhu/CMakeLists.txt)
40
include(forcetheorem/CMakeLists.txt)
41
include(rdmft/CMakeLists.txt)
42
include(kpoints/CMakeLists.txt)
43

44 45

include(tests/tests_old.cmake)
46
#include(tests/tests_new.cmake)
47

48 49 50 51 52 53

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)

Daniel Wortmann's avatar
Daniel Wortmann committed
54 55 56
string(REPLACE ";" " " CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} ${FLEUR_PRECISION_OPTION}")
message("Flags: ${CMAKE_Fortran_FLAGS}")

57
set(FLEUR_LINK_LIBRARIES "${FLEUR_LINK_LIBRARIES};juDFT")
58

59 60 61 62 63
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})
64
   target_link_libraries(fleur ${FLEUR_LINK_LIBRARIES})
Daniel Wortmann's avatar
Daniel Wortmann committed
65
   set_target_properties(fleur PROPERTIES Fortran_MODULE_DIRECTORY modules/fleur COMPILE_OPTIONS -Imodules/fleur)
66 67
endif()
#parallel executables
68
if(${FLEUR_USE_MPI})
69
  #fleur_MPI
70 71
  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})
72
  target_link_libraries(fleur_MPI ${FLEUR_LIBRARIES})
73
  target_link_libraries(fleur_MPI  ${FLEUR_LINK_LIBRARIES})
Daniel Wortmann's avatar
Daniel Wortmann committed
74
  set_target_properties(fleur_MPI PROPERTIES Fortran_MODULE_DIRECTORY modules/fleur_MPI COMPILE_OPTIONS -Imodules/fleur_MPI)
75 76 77 78
endif ()



79 80
include(cmake/docker.txt)

81 82 83 84 85 86 87 88 89 90 91

#if (${FLEUR_USE_SERIAL})        
#install(TARGETS fleur inpgen 
#        CONFIGURATIONS Release
#        DESTINATION bin)
#endif()
#if (${FLEUR_USE_MPI})        
#install(TARGETS fleur_MPI 
#        CONFIGURATIONS Release
#        DESTINATION bin)
#endif()