X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;ds=sidebyside;f=source%2Fwham%2Fsrc%2FCMakeLists.txt;h=b091fd3d7bdacfb81dae34278af56eaf31775d23;hb=61c5a6d5f25846efd3da0100188d868989e7fb76;hp=e7f990ef85225ccabb9db243eea74cf93ce8bb62;hpb=bf1dcde144c269e866b2805b09a85eb3945b6dc8;p=unres.git diff --git a/source/wham/src/CMakeLists.txt b/source/wham/src/CMakeLists.txt index e7f990e..b091fd3 100644 --- a/source/wham/src/CMakeLists.txt +++ b/source/wham/src/CMakeLists.txt @@ -94,7 +94,7 @@ set(UNRES_WHAM_PP_SRC # Set comipiler flags for different sourcefiles #================================================ if (Fortran_COMPILER_NAME STREQUAL "ifort") - set(FFLAGS0 "-mcmodel=medium -g -CB -I. -I${CMAKE_CURRENT_SOURCE_DIR}/include_unres" ) + set(FFLAGS0 "-mcmodel=medium -shared-intel -I. -I${CMAKE_CURRENT_SOURCE_DIR}/include_unres" ) elseif (Fortran_COMPILER_NAME STREQUAL "gfortran") set(FFLAGS0 "-std=legacy -g -I. -I${CMAKE_CURRENT_SOURCE_DIR}/include_unres" ) else () @@ -125,6 +125,8 @@ if(UNRES_MD_FF STREQUAL "GAB" ) elseif(UNRES_MD_FF STREQUAL "E0LL2Y") # set preprocesor flags set(CPPFLAGS "PROCOR -DSPLITELE -DSCCORPDB" ) +elseif(UNRES_MD_FF STREQUAL "4P") + set(CPPFLAGS "SPLITELE -DLANG0 -DCRYST_BOND -DCRYST_THETA -DCRYST_SC -DSCCORPDB" ) endif(UNRES_MD_FF STREQUAL "GAB") @@ -177,7 +179,7 @@ set_property(SOURCE ${UNRES_WHAM_PP_SRC} PROPERTY COMPILE_DEFINITIONS ${CPPFLAGS #======================================== # Setting binary name #======================================== -set(UNRES_WHAM_BIN "wham_${Fortran_COMPILER_NAME}.exe") +set(UNRES_WHAM_BIN "wham_${Fortran_COMPILER_NAME}_MPI_${UNRES_MD_FF}.exe") #========================================= # cinfo.f workaround for CMake @@ -235,7 +237,7 @@ target_link_libraries( UNRES_WHAM_BIN xdrf ) #========================================= # Install Path #========================================= -install(TARGETS UNRES_WHAM_BIN DESTINATION ${CMAKE_INSTALL_PREFIX}) +install(TARGETS UNRES_WHAM_BIN DESTINATION ${CMAKE_INSTALL_PREFIX}/wham) #=========================================