+add_subdirectory(source/lib/xdrf)
+
+
+if(UNRES_NA_MMCE)
+
+ if(UNRES_WITH_MPI)
+ # Brak MPI dla gfortrana, wiec tylko na ifort sie skompiluje
+ if (Fortran_COMPILER_NAME STREQUAL "ifort")
+ add_subdirectory(source/unres/src_MD)
+ add_subdirectory(source/unres/src_MD-M)
+ add_subdirectory(source/unres/src_CSA)
+ add_subdirectory(source/xdrfpdb/src)
+ add_subdirectory(source/xdrfpdb/src-M)
+ add_subdirectory(source/cluster/wham/src)
+ add_subdirectory(source/cluster/wham/src-M)
+ endif (Fortran_COMPILER_NAME STREQUAL "ifort")
+ else()
+ add_subdirectory(source/unres/src_MD)
+ # src_MD-M doesn't work yet witout MPI
+ # add_subdirectory(source/unres/src_MD-M)
+ endif()
+ add_subdirectory(source/unres/src_MIN)
+ add_subdirectory(source/cluster/unres/src)
+
+else()
+
+ add_subdirectory(source/unres/src_MD)
+ if(UNRES_WITH_MPI)
+ add_subdirectory(source/unres/src_MD-M)
+ add_subdirectory(source/unres/src_CSA)
+ add_subdirectory(source/xdrfpdb/src)
+ add_subdirectory(source/xdrfpdb/src-M)
+ add_subdirectory(source/wham/src)
+ add_subdirectory(source/wham/src-M)
+ add_subdirectory(source/cluster/wham/src)
+ add_subdirectory(source/cluster/wham/src-M)
+ endif(UNRES_WITH_MPI)
+ add_subdirectory(source/unres/src_MIN)
+ add_subdirectory(source/cluster/unres/src)
+
+endif(UNRES_NA_MMCE)