Moved grompp from src/kernel/ to src/programs/grompp/.
authorTeemu Murtola <teemu.murtola@cbr.su.se>
Sun, 9 Jan 2011 12:55:34 +0000 (14:55 +0200)
committerTeemu Murtola <teemu.murtola@cbr.su.se>
Sun, 9 Jan 2011 12:55:34 +0000 (14:55 +0200)
Functions related to topology IO where moved to
src/gromacs/gmxpreprocess/ because they were also referenced by pdb2gmx.

IssueID #637

30 files changed:
src/gromacs/gmxpreprocess/add_par.c [moved from src/kernel/add_par.c with 100% similarity]
src/gromacs/gmxpreprocess/add_par.h [moved from src/kernel/add_par.h with 100% similarity]
src/gromacs/gmxpreprocess/gpp_atomtype.c [moved from src/kernel/gpp_atomtype.c with 100% similarity]
src/gromacs/gmxpreprocess/gpp_bond_atomtype.c [moved from src/kernel/gpp_bond_atomtype.c with 100% similarity]
src/gromacs/gmxpreprocess/gpp_bond_atomtype.h [moved from src/kernel/gpp_bond_atomtype.h with 100% similarity]
src/gromacs/gmxpreprocess/readir.c [moved from src/kernel/readir.c with 100% similarity]
src/gromacs/gmxpreprocess/readir.h [moved from src/kernel/readir.h with 100% similarity]
src/gromacs/gmxpreprocess/readpull.c [moved from src/kernel/readpull.c with 100% similarity]
src/gromacs/gmxpreprocess/readrot.c [moved from src/kernel/readrot.c with 100% similarity]
src/gromacs/gmxpreprocess/topdirs.c [moved from src/kernel/topdirs.c with 100% similarity]
src/gromacs/gmxpreprocess/topdirs.h [moved from src/kernel/topdirs.h with 100% similarity]
src/gromacs/gmxpreprocess/topexcl.c [moved from src/kernel/topexcl.c with 100% similarity]
src/gromacs/gmxpreprocess/topexcl.h [moved from src/kernel/topexcl.h with 100% similarity]
src/gromacs/gmxpreprocess/topio.c [moved from src/kernel/topio.c with 100% similarity]
src/gromacs/gmxpreprocess/topio.h [moved from src/kernel/topio.h with 100% similarity]
src/gromacs/gmxpreprocess/toppush.c [moved from src/kernel/toppush.c with 100% similarity]
src/gromacs/gmxpreprocess/toppush.h [moved from src/kernel/toppush.h with 100% similarity]
src/gromacs/gmxpreprocess/topshake.c [moved from src/kernel/topshake.c with 100% similarity]
src/gromacs/gmxpreprocess/topshake.h [moved from src/kernel/topshake.h with 100% similarity]
src/gromacs/gmxpreprocess/toputil.c [moved from src/kernel/toputil.c with 100% similarity]
src/gromacs/gmxpreprocess/vsite_parm.c [moved from src/kernel/vsite_parm.c with 100% similarity]
src/gromacs/gmxpreprocess/vsite_parm.h [moved from src/kernel/vsite_parm.h with 100% similarity]
src/kernel/CMakeLists.txt
src/programs/CMakeLists.txt
src/programs/grompp/CMakeLists.txt [new file with mode: 0644]
src/programs/grompp/convparm.c [moved from src/kernel/convparm.c with 100% similarity]
src/programs/grompp/convparm.h [moved from src/kernel/convparm.h with 100% similarity]
src/programs/grompp/gpp_tomorse.h [moved from src/kernel/gpp_tomorse.h with 100% similarity]
src/programs/grompp/grompp.c [moved from src/kernel/grompp.c with 100% similarity]
src/programs/grompp/tomorse.c [moved from src/kernel/tomorse.c with 100% similarity]

index 913489e6e775f7dcbfd4f635a587a3bc68533a99..c045ff2b8def61daa404615e8ca74883b64f07e9 100644 (file)
@@ -1,35 +1,20 @@
 include_directories(${CMAKE_SOURCE_DIR}/src/gromacs/gmxpreprocess)
 
 set(GMXPREPROCESS_SOURCES 
-    add_par.c       
-    convparm.c      
     gen_ad.c        
     gen_vsite.c     
     genhydro.c   
-    gpp_atomtype.c  
-    gpp_bond_atomtype.c     
     h_db.c          
     hackblock.c             
     hizzie.c        
     nm2type.c
     pdb2top.c       
     pgutil.c        
-    readir.c
-    readpull.c      
-    readrot.c
     resall.c        
     sorting.c       
     specbond.c      
     ter_db.c        
-    tomorse.c       
-    topdirs.c       
-    topexcl.c       
-    topio.c         
-    toppush.c       
-    topshake.c      
-    toputil.c       
     tpbcmp.c        
-    vsite_parm.c    
     fflibutil.c
     xlate.c)
 
@@ -41,10 +26,6 @@ if(NOT GMX_FAHCORE)
 
 list(APPEND GMX_EXTRA_LIBRARIES gmxpreprocess libgromacs)
 
-add_executable(grompp grompp.c)
-target_link_libraries(grompp ${GMX_EXTRA_LIBRARIES})
-set_target_properties(grompp PROPERTIES OUTPUT_NAME "grompp${GMX_BINARY_SUFFIX}")
-
 add_executable(tpbconv tpbconv.c)
 target_link_libraries(tpbconv ${GMX_EXTRA_LIBRARIES})
 set_target_properties(tpbconv PROPERTIES OUTPUT_NAME "tpbconv${GMX_BINARY_SUFFIX}")
@@ -75,7 +56,6 @@ set_target_properties(gmxcheck PROPERTIES OUTPUT_NAME "gmxcheck${GMX_BINARY_SUFF
 
 install(TARGETS gmxpreprocess DESTINATION ${LIB_INSTALL_DIR} COMPONENT libraries)
 install(TARGETS 
-        grompp
         tpbconv
         pdb2gmx
         g_protonate
index b1c174f40c86abbe526eb751f0938a818e018333..d2f0dd28919566f6bfceff78445cabb6d6e96f8a 100644 (file)
@@ -1,2 +1,5 @@
-add_subdirectory(g_ana)
 add_subdirectory(mdrun)
+if (NOT GMX_FAHCORE)
+    add_subdirectory(g_ana)
+    add_subdirectory(grompp)
+endif (NOT GMX_FAHCORE)
diff --git a/src/programs/grompp/CMakeLists.txt b/src/programs/grompp/CMakeLists.txt
new file mode 100644 (file)
index 0000000..70869e4
--- /dev/null
@@ -0,0 +1,8 @@
+include_directories(${CMAKE_SOURCE_DIR}/src/gromacs/gmxpreprocess)
+
+file(GLOB GROMPP_SOURCES *.c)
+
+add_executable(grompp ${GROMPP_SOURCES})
+target_link_libraries(grompp ${GMX_EXTRA_LIBRARIES} libgromacs)
+set_target_properties(grompp PROPERTIES OUTPUT_NAME "grompp${GMX_BINARY_SUFFIX}")
+install(TARGETS grompp DESTINATION ${BIN_INSTALL_DIR} COMPONENT runtime)