merge with upstream gromacs
[gromacs/adressmacs.git] / src / kernel / CMakeLists.txt
blob4a334bcf57b4d8094d0ae3de857f72713ea2ee2e
2 set(GMXPREPROCESS_SOURCES 
3     add_par.c       
4     compute_io.c    
5     convparm.c      
6     fflibutil.c
7     gen_ad.c        
8     gen_vsite.c     
9     genhydro.c   
10     gpp_atomtype.c  
11     gpp_bond_atomtype.c     
12     h_db.c          
13     hackblock.c             
14     hizzie.c        
15     nm2type.c
16     pdb2top.c       
17     pgutil.c        
18     readir.c        
19     readpull.c      
20     resall.c        
21     sorting.c       
22     specbond.c      
23     ter_db.c        
24     tomorse.c       
25     topdirs.c       
26     topexcl.c       
27     topio.c         
28     toppush.c       
29     topshake.c      
30     toputil.c       
31     tpbcmp.c        
32     vsite_parm.c    
33     xlate.c)
35 set(MDRUN_SOURCES 
36     gctio.c    ionize.c runner.c
37     do_gct.c     repl_ex.c  xutils.c
38     md.c         mdrun.c    genalg.c)
40 add_library(gmxpreprocess ${GMXPREPROCESS_SOURCES})
41 target_link_libraries(gmxpreprocess md)
43 if(GMX_FAHCORE)
44   add_library(fahcore ${MDRUN_SOURCES})
45 else(GMX_FAHCORE)
47 list(APPEND GMX_EXTRA_LIBRARIES gmxpreprocess md)
49 add_executable(grompp grompp.c)
50 target_link_libraries(grompp ${GMX_EXTRA_LIBRARIES})
52 add_executable(tpbconv tpbconv.c)
53 target_link_libraries(tpbconv ${GMX_EXTRA_LIBRARIES})
55 add_executable(pdb2gmx pdb2gmx.c)
56 target_link_libraries(pdb2gmx ${GMX_EXTRA_LIBRARIES})
58 add_executable(protonate protonate.c)
59 target_link_libraries(protonate ${GMX_EXTRA_LIBRARIES})
61 add_executable(luck luck.c)
62 target_link_libraries(luck ${GMX_EXTRA_LIBRARIES})
64 add_executable(gmxdump gmxdump.c)
65 target_link_libraries(gmxdump ${GMX_EXTRA_LIBRARIES})
67 add_executable(x2top x2top.c)
68 target_link_libraries(x2top ${GMX_EXTRA_LIBRARIES})
70 add_executable(gmxcheck gmxcheck.c)
71 target_link_libraries(gmxcheck ${GMX_EXTRA_LIBRARIES})
73 add_executable(mdrun ${MDRUN_SOURCES})
74 target_link_libraries(mdrun ${GMX_EXTRA_LIBRARIES})
76 install(TARGETS 
77         grompp
78         tpbconv
79         pdb2gmx
80         protonate
81         luck
82         gmxdump
83         x2top
84         gmxcheck
85         mdrun
86         gmxpreprocess DESTINATION ${LIB_INSTALL_DIR}
87         RUNTIME DESTINATION ${BIN_INSTALL_DIR})
89 endif(GMX_FAHCORE)