Don't use POSIX fnmatch() for pattern matching.
[gromacs/qmmm-gamess-us.git] / src / kernel / CMakeLists.txt
blobda71ae0e3e21c134539f5459b3476fff54e562f9
2 set(GMXPREPROCESS_SOURCES 
3     add_par.c       
4     compute_io.c    
5     convparm.c      
6     gen_ad.c        
7     gen_vsite.c     
8     genhydro.c   
9     gpp_atomtype.c  
10     gpp_bond_atomtype.c     
11     h_db.c          
12     hackblock.c             
13     hizzie.c        
14     nm2type.c
15     pdb2top.c       
16     pgutil.c        
17     readir.c        
18     readpull.c      
19     resall.c        
20     sorting.c       
21     specbond.c      
22     ter_db.c        
23     tomorse.c       
24     topdirs.c       
25     topexcl.c       
26     topio.c         
27     toppush.c       
28     topshake.c      
29     toputil.c       
30     tpbcmp.c        
31     vsite_parm.c    
32     xlate.c)
34 set(MDRUN_SOURCES 
35     gctio.c    ionize.c
36     do_gct.c     repl_ex.c  xutils.c
37     md.c         mdrun.c    genalg.c)
39 add_library(gmxpreprocess ${GMXPREPROCESS_SOURCES})
40 target_link_libraries(gmxpreprocess md)
42 if(GMX_FAHCORE)
43   add_library(fahcore ${MDRUN_SOURCES})
44 else(GMX_FAHCORE)
46 list(APPEND GMX_EXTRA_LIBRARIES gmxpreprocess md)
48 add_executable(grompp grompp.c)
49 target_link_libraries(grompp ${GMX_EXTRA_LIBRARIES})
51 add_executable(tpbconv tpbconv.c)
52 target_link_libraries(tpbconv ${GMX_EXTRA_LIBRARIES})
54 add_executable(pdb2gmx pdb2gmx.c)
55 target_link_libraries(pdb2gmx ${GMX_EXTRA_LIBRARIES})
57 add_executable(protonate protonate.c)
58 target_link_libraries(protonate ${GMX_EXTRA_LIBRARIES})
60 add_executable(luck luck.c)
61 target_link_libraries(luck ${GMX_EXTRA_LIBRARIES})
63 add_executable(gmxdump gmxdump.c)
64 target_link_libraries(gmxdump ${GMX_EXTRA_LIBRARIES})
66 add_executable(x2top x2top.c)
67 target_link_libraries(x2top ${GMX_EXTRA_LIBRARIES})
69 add_executable(gmxcheck gmxcheck.c)
70 target_link_libraries(gmxcheck ${GMX_EXTRA_LIBRARIES})
72 add_executable(mdrun ${MDRUN_SOURCES})
73 target_link_libraries(mdrun ${GMX_EXTRA_LIBRARIES})
75 install(TARGETS 
76         grompp
77         tpbconv
78         pdb2gmx
79         protonate
80         luck
81         gmxdump
82         x2top
83         gmxcheck
84         mdrun
85         gmxpreprocess DESTINATION ${LIB_INSTALL_DIR}
86         RUNTIME DESTINATION ${BIN_INSTALL_DIR})
88 endif(GMX_FAHCORE)