parmread.F
pinorm.f
printmat.f
- prng_32.F
q_measure.F
randgens.f
rattle.F
unres.F
)
-if (Fortran_COMPILER_NAME STREQUAL "ifort")
- set(UNRES_MD_SRC0 "${UNRES_MDM_SRC0} prng.f")
-else
- set(UNRES_MD_SRC0 "${UNRES_MDM_SRC0} prng_32.F")
+if(Fortran_COMPILER_NAME STREQUAL "ifort")
+ set(UNRES_MD_SRC0 ${UNRES_MD_SRC0} prng.f )
+else()
+ set(UNRES_MD_SRC0 ${UNRES_MD_SRC0} prng_32.F )
endif (Fortran_COMPILER_NAME STREQUAL "ifort")
if(NOT Fortran_COMPILER_NAME STREQUAL "ifort")
- set(UNRES_MD_PP_SRC "${UNRES_MDM_PP_SRC} prng_32.F")
+ set(UNRES_MD_PP_SRC ${UNRES_MD_PP_SRC} prng_32.F)
endif(NOT Fortran_COMPILER_NAME STREQUAL "ifort")
#================================================
set(CPPFLAGS "${CPPFLAGS} -DMP -DMPI")
endif(UNRES_WITH_MPI)
+#=========================================
# Apply preprocesor flags to *.F files
+#=========================================
set_property(SOURCE ${UNRES_MD_PP_SRC} PROPERTY COMPILE_DEFINITIONS ${CPPFLAGS} )
#========================================
if(UNRES_WITH_MPI)
# binary with mpi
- set(UNRES_BIN "unres_${Fortran_COMPILER_NAME}_MPICH_${UNRES_FF}.exe")
+ set(UNRES_BIN "unres_${Fortran_COMPILER_NAME}_MPICH_${UNRES_MD_FF}.exe")
else(UNRES_WITH_MPI)
# binary without mpi
- set(UNRES_BIN "unres_${Fortran_COMPILER_NAME}_single_${UNRES_FF}.exe")
+ set(UNRES_BIN "unres_${Fortran_COMPILER_NAME}_single_${UNRES_MD_FF}.exe")
endif(UNRES_WITH_MPI)
#=========================================