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)
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}")
install(TARGETS gmxpreprocess DESTINATION ${LIB_INSTALL_DIR} COMPONENT libraries)
install(TARGETS
- grompp
tpbconv
pdb2gmx
g_protonate
--- /dev/null
+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)