Files_and_Targets.txt 2.84 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(docs/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)
Daniel Wortmann's avatar
Daniel Wortmann committed
36
include(types/CMakeLists.txt)
37 38
include(wannier/CMakeLists.txt)
include(wannier/uhu/CMakeLists.txt)
39
include(forcetheorem/CMakeLists.txt)
40
include(rdmft/CMakeLists.txt)
41
include(kpoints/CMakeLists.txt)
42

43 44

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

47 48 49 50 51 52

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
53 54 55
string(REPLACE ";" " " CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} ${FLEUR_PRECISION_OPTION}")
message("Flags: ${CMAKE_Fortran_FLAGS}")

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

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



78 79
include(cmake/docker.txt)

80 81 82 83 84 85 86 87 88 89 90

#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()