X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=source%2Fcluster%2Fwham%2Fsrc-M%2FCMakeLists.txt;h=d4b9ae54cba843575d316fcddd0426fab0ba3b69;hb=e849017ef3d10035a275e5e8aaf808ff1fab567c;hp=e2c129f5c9f4d4240bc910b2024f49254f940495;hpb=ffd307c4e80731e67fad817fc591b52a4bb9c1f3;p=unres.git diff --git a/source/cluster/wham/src-M/CMakeLists.txt b/source/cluster/wham/src-M/CMakeLists.txt index e2c129f..d4b9ae5 100644 --- a/source/cluster/wham/src-M/CMakeLists.txt +++ b/source/cluster/wham/src-M/CMakeLists.txt @@ -2,7 +2,7 @@ # CMake project file for cluster analysis from WHAM for oligomeric proteins # -enable_language (Fortran) +enable_language (Fortran C) #================================ # Set source file lists @@ -29,6 +29,7 @@ set(UNRES_CLUSTER_WHAM_M_SRC0 parmread.F permut.f pinorm.f + printmat.f probabl.F read_coords.F readpdb.f @@ -54,7 +55,6 @@ set(UNRES_CLUSTER_WHAM_M_PP_SRC timing.F track.F work_partition.F - proc_proc.c ) @@ -62,9 +62,9 @@ set(UNRES_CLUSTER_WHAM_M_PP_SRC # Set comipiler flags for different sourcefiles #================================================ if (Fortran_COMPILER_NAME STREQUAL "ifort") - set(FFLAGS0 "-ip -w -I. -I${CMAKE_CURRENT_SOURCE_DIR}/include_unres " ) + set(FFLAGS0 "-ip -w -I. -I${CMAKE_CURRENT_SOURCE_DIR}/include_unres" ) elseif (Fortran_COMPILER_NAME STREQUAL "gfortran") - set(FFLAGS0 "-I. -I${CMAKE_CURRENT_SOURCE_DIR}/inlude_unres " ) + set(FFLAGS0 "-std=legacy -I. -I${CMAKE_CURRENT_SOURCE_DIR}/include_unres" ) endif (Fortran_COMPILER_NAME STREQUAL "ifort") # Add MPI compiler flags @@ -74,7 +74,21 @@ endif(UNRES_WITH_MPI) set_property(SOURCE ${UNRES_CLUSTER_WHAM_M_SRC0} PROPERTY COMPILE_FLAGS ${FFLAGS0} ) -set(CPPFLAGS "PROCOR -DSPLITELE -DPROCOR -DCRYST_BOND -DCRYST_THETA -DCRYST_SC" ) +#========================================= +# Settings for GAB force field +#========================================= +if(UNRES_MD_FF STREQUAL "GAB" ) + # set preprocesor flags + set(CPPFLAGS "PROCOR -DSPLITELE -DCRYST_BOND -DCRYST_THETA -DCRYST_SC -DSCCORPDB" ) + +#========================================= +# Settings for E0LL2Y force field +#========================================= +elseif(UNRES_MD_FF STREQUAL "E0LL2Y") + # set preprocesor flags + set(CPPFLAGS "PROCOR -DSPLITELE -DSCCORPDB" ) +endif(UNRES_MD_FF STREQUAL "GAB") + if (Fortran_COMPILER_NAME STREQUAL "ifort") # Add ifort preprocessor flags @@ -108,6 +122,7 @@ endif(UNRES_WITH_MPI) #========================================= set_property(SOURCE ${UNRES_CLUSTER_WHAM_M_PP_SRC} PROPERTY COMPILE_DEFINITIONS ${CPPFLAGS} ) +set_property(SOURCE proc_proc.c PROPERTY COMPILE_DEFINITIONS "LINUX -DPGI" ) #======================================== # Setting binary name @@ -133,7 +148,7 @@ set(UNRES_CLUSTER_WHAM_M_BIN "unres_clustMD.exe") #========================================= # Set full unres CLUSTER sources #========================================= -set(UNRES_CLUSTER_WHAM_M_SRCS ${UNRES_CLUSTER_WHAM_M_SRC0} ${CMAKE_CURRENT_SOURCE_DIR}/proc_proc.c) +set(UNRES_CLUSTER_WHAM_M_SRCS ${UNRES_CLUSTER_WHAM_M_SRC0} proc_proc.c) #========================================= # Build the binary