2 # CMake project file for UNRES
5 enable_language (Fortran)
8 set(UNRES_MD_SRC0 unres.F arcos.f cartprint.f chainbuild.F convert.f
9 initialize_p.F matmult.f readrtns.F parmread.F gen_rand_conf.F
10 printmat.f map.f pinorm.f randgens.f rescode.f intcor.f timing.F
11 misc.f intlocal.f cartder.F checkder_p.F econstr_local.F
12 minimize_p.F sumsld.f cored.f rmdd.f geomout.F readpdb.F regularize.F
13 thread.F fitsq.f mcm.F mc.F bond_move.f refsys.f check_sc_distr.f
14 check_bond.f contact.f djacob.f eigen.f blas.f add.f entmcm.F
15 minim_mcmf.F MP.F compare_s1.F prng_32.F banach.f rmsd.F elecont.f dihed_cons.F sc_move.F
16 local_move.f intcartderiv.F lagrangian_lesyng.F stochfric.F kinetic_lesyng.f MD_A-MTS.F moments.f
17 int_to_cart.f surfatom.f sort.f muca_md.f MREMD.F rattle.F gauss.f energy_split-sep.F
18 q_measure.F gnmr1.f test.F )
21 set(UNRES_MD_SRC3 energy_p_new_barrier.F energy_p_new-sep_barrier.F gradient_p.F )
24 # Set compiler flags for different sourcefiles
25 set(FFLAGS0 -c -O3 -ip -w )
26 set(FFLAGS1 -c -w -g -d2 -CA -CB )
27 set(FFLAGS2 -c -w -g -00 )
28 set(FFLAGS3 -c -w -O3 -ipo -ipo_obj -opt_report )
30 set_property(SOURCE ${UNRES_MD_SRC0} PROPERTY CMAKE_Fortran_FLAGS ${FFLAGS0} )
31 set_property(SOURCE ${UNRES_MD_SRC1} PROPERTY COMPILE_FLAGS ${FFLAGS1} )
32 set_property(SOURCE ${UNRES_MD_SRC2} PROPERTY COMPILE_FLAGS ${FFLAGS2} )
33 set_property(SOURCE ${UNRES_MD_SRC3} PROPERTY CMAKE_Fortran_FLAGS ${FFLAGS3} )
37 if(UNRES_FF STREQUAL "GAB")
39 set(CPPFLAGS -DPROCOR -DLINUX -DPGI -DUNRES -DISNAN -DMP -DMPI -DSPLITELE -DLANGO -DCRYST_BOND
40 -DCRYST_THETA -DCRYST_SC )
42 else(UNRES_FF strequal "E0LL2Y")
44 set(CPPFLAGS -DPROCOR -DLINUX -DPGI -DUNRES -DISNAN -DMP -DMPI -DSPLITELE -DLANG0 )
49 add_executable(unres ${UNRES_MD_SRC0} ${UNRES_MD_SRC3} )