Moved pdb2gmx from src/kernel/ to src/programs/pdb2gmx/.
authorTeemu Murtola <teemu.murtola@cbr.su.se>
Sun, 9 Jan 2011 13:13:37 +0000 (15:13 +0200)
committerTeemu Murtola <teemu.murtola@cbr.su.se>
Sun, 9 Jan 2011 13:13:37 +0000 (15:13 +0200)
Functionality shared with g_x2top and/or g_protonate was moved to
src/gromacs/gmxpreprocess/.

IssueID #637

26 files changed:
src/gromacs/gmxpreprocess/fflibutil.c [moved from src/kernel/fflibutil.c with 100% similarity]
src/gromacs/gmxpreprocess/fflibutil.h [moved from src/kernel/fflibutil.h with 100% similarity]
src/gromacs/gmxpreprocess/gen_ad.c [moved from src/kernel/gen_ad.c with 100% similarity]
src/gromacs/gmxpreprocess/gen_vsite.c [moved from src/kernel/gen_vsite.c with 100% similarity]
src/gromacs/gmxpreprocess/gen_vsite.h [moved from src/kernel/gen_vsite.h with 100% similarity]
src/gromacs/gmxpreprocess/genhydro.c [moved from src/kernel/genhydro.c with 100% similarity]
src/gromacs/gmxpreprocess/genhydro.h [moved from src/kernel/genhydro.h with 100% similarity]
src/gromacs/gmxpreprocess/h_db.c [moved from src/kernel/h_db.c with 100% similarity]
src/gromacs/gmxpreprocess/h_db.h [moved from src/kernel/h_db.h with 100% similarity]
src/gromacs/gmxpreprocess/hackblock.c [moved from src/kernel/hackblock.c with 100% similarity]
src/gromacs/gmxpreprocess/pdb2top.c [moved from src/kernel/pdb2top.c with 100% similarity]
src/gromacs/gmxpreprocess/pgutil.c [moved from src/kernel/pgutil.c with 100% similarity]
src/gromacs/gmxpreprocess/pgutil.h [moved from src/kernel/pgutil.h with 100% similarity]
src/gromacs/gmxpreprocess/resall.c [moved from src/kernel/resall.c with 100% similarity]
src/gromacs/gmxpreprocess/ter_db.c [moved from src/kernel/ter_db.c with 100% similarity]
src/gromacs/gmxpreprocess/ter_db.h [moved from src/kernel/ter_db.h with 100% similarity]
src/kernel/CMakeLists.txt
src/programs/CMakeLists.txt
src/programs/pdb2gmx/CMakeLists.txt [new file with mode: 0644]
src/programs/pdb2gmx/hizzie.c [moved from src/kernel/hizzie.c with 100% similarity]
src/programs/pdb2gmx/hizzie.h [moved from src/kernel/hizzie.h with 100% similarity]
src/programs/pdb2gmx/pdb2gmx.c [moved from src/kernel/pdb2gmx.c with 100% similarity]
src/programs/pdb2gmx/specbond.c [moved from src/kernel/specbond.c with 100% similarity]
src/programs/pdb2gmx/specbond.h [moved from src/kernel/specbond.h with 100% similarity]
src/programs/pdb2gmx/xlate.c [moved from src/kernel/xlate.c with 100% similarity]
src/programs/pdb2gmx/xlate.h [moved from src/kernel/xlate.h with 100% similarity]

index c045ff2b8def61daa404615e8ca74883b64f07e9..58bc9f3a9250a69624d0cd0ac1af997bcc41d55e 100644 (file)
@@ -1,22 +1,9 @@
 include_directories(${CMAKE_SOURCE_DIR}/src/gromacs/gmxpreprocess)
 
 set(GMXPREPROCESS_SOURCES 
-    gen_ad.c        
-    gen_vsite.c     
-    genhydro.c   
-    h_db.c          
-    hackblock.c             
-    hizzie.c        
     nm2type.c
-    pdb2top.c       
-    pgutil.c        
-    resall.c        
     sorting.c       
-    specbond.c      
-    ter_db.c        
-    tpbcmp.c        
-    fflibutil.c
-    xlate.c)
+    tpbcmp.c)
 
 add_library(gmxpreprocess ${GMXPREPROCESS_SOURCES})
 target_link_libraries(gmxpreprocess libgromacs)
@@ -30,10 +17,6 @@ add_executable(tpbconv tpbconv.c)
 target_link_libraries(tpbconv ${GMX_EXTRA_LIBRARIES})
 set_target_properties(tpbconv PROPERTIES OUTPUT_NAME "tpbconv${GMX_BINARY_SUFFIX}")
 
-add_executable(pdb2gmx pdb2gmx.c)
-target_link_libraries(pdb2gmx ${GMX_EXTRA_LIBRARIES})
-set_target_properties(pdb2gmx PROPERTIES OUTPUT_NAME "pdb2gmx${GMX_BINARY_SUFFIX}")
-
 add_executable(g_protonate g_protonate.c)
 target_link_libraries(g_protonate ${GMX_EXTRA_LIBRARIES})
 set_target_properties(g_protonate PROPERTIES OUTPUT_NAME "g_protonate${GMX_BINARY_SUFFIX}")
@@ -57,7 +40,6 @@ set_target_properties(gmxcheck PROPERTIES OUTPUT_NAME "gmxcheck${GMX_BINARY_SUFF
 install(TARGETS gmxpreprocess DESTINATION ${LIB_INSTALL_DIR} COMPONENT libraries)
 install(TARGETS 
         tpbconv
-        pdb2gmx
         g_protonate
         g_luck
         gmxdump
index d2f0dd28919566f6bfceff78445cabb6d6e96f8a..4a7cf565cc440cabdb03a5a2aa9776620cd9fc68 100644 (file)
@@ -2,4 +2,5 @@ add_subdirectory(mdrun)
 if (NOT GMX_FAHCORE)
     add_subdirectory(g_ana)
     add_subdirectory(grompp)
+    add_subdirectory(pdb2gmx)
 endif (NOT GMX_FAHCORE)
diff --git a/src/programs/pdb2gmx/CMakeLists.txt b/src/programs/pdb2gmx/CMakeLists.txt
new file mode 100644 (file)
index 0000000..a90ce45
--- /dev/null
@@ -0,0 +1,8 @@
+include_directories(${CMAKE_SOURCE_DIR}/src/gromacs/gmxpreprocess)
+
+file(GLOB PDB2GMX_SOURCES *.c)
+
+add_executable(pdb2gmx ${PDB2GMX_SOURCES})
+target_link_libraries(pdb2gmx ${GMX_EXTRA_LIBRARIES} libgromacs)
+set_target_properties(pdb2gmx PROPERTIES OUTPUT_NAME "pdb2gmx${GMX_BINARY_SUFFIX}")
+install(TARGETS pdb2gmx DESTINATION ${BIN_INSTALL_DIR} COMPONENT runtime)