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

Daniel Wortmann's avatar
Daniel Wortmann committed
3

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

Daniel Wortmann's avatar
Daniel Wortmann committed
10

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

45 46

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

49 50 51 52 53 54

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)

55 56 57
string(REPLACE ";" " " CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} ${FLEUR_PRECISION_OPTION}")
message("Flags: ${CMAKE_Fortran_FLAGS}")

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



80 81
include(cmake/docker.txt)

82 83 84 85 86 87 88 89 90 91 92

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