Updated share/top Makefile.am files.
[gromacs/qmmm-gamess-us.git] / src / ngmx / CMakeLists.txt
blobf0e9c02348f798134b616b453ab18e1301a49f70
2 if(X11_FOUND)
4 set(NGMX_COMMON_SOURCE
5     xutil.c         xmb.c           x11.c
6     xdlghi.c        fgrid.c         xdlgitem.c
7     popup.c         pulldown.c      xdlg.c
8     manager.c       buttons.c       nmol.c
9     nleg.c          dialogs.c       logo.c
10     filter.c        molps.c)
12 include_directories(${X11_INCLUDE_DIR})
13 include_directories(${CMAKE_CURRENT_SOURCE_DIR})
15 # List of programs with single corresponding *.c source file,
16 # used to create build rules automatically.
18 set(NGMX_PROGRAMS 
19     ngmx xrama highway gmxlogo dlg scrollw showcol)
21 foreach(PROG ${NGMX_PROGRAMS})
22         add_executable(${PROG} ${PROG}.c ${NGMX_COMMON_SOURCE})
23         target_link_libraries(${PROG} gmx ${GMX_EXTRA_LIBRARIES} ${X11_LIBRARIES})
24 endforeach(PROG) 
27 install(TARGETS ${NGMX_PROGRAMS}
28         RUNTIME DESTINATION ${BIN_INSTALL_DIR})
31 endif(X11_FOUND)