# The nonbonded directory contains subdirectories that are only
# conditionally built, so we cannot use a GLOB_RECURSE here.
file(GLOB GMXLIB_SOURCES *.c
- selection/*.c trajana/*.c
statistics/*.c nonbonded/*.c nonbonded/nb_kernel_c/*.c)
# This source file is generated
#include <pbc.h>
#include <vec.h>
-#include <centerofmass.h>
+#include "centerofmass.h"
/*!
* \param[in] top Topology structure (unused, can be NULL).
#include <string2.h>
#include <vec.h>
-#include <indexutil.h>
-#include <poscalc.h>
-#include <selection.h>
-#include <selmethod.h>
+#include "indexutil.h"
+#include "poscalc.h"
+#include "selection.h"
+#include "selmethod.h"
#include "evaluate.h"
#include "keywords.h"
#include <smalloc.h>
#include <vec.h>
-#include <indexutil.h>
-#include <poscalc.h>
-#include <selection.h>
-#include <selmethod.h>
+#include "indexutil.h"
+#include "poscalc.h"
+#include "selection.h"
+#include "selmethod.h"
#include "evaluate.h"
#include "mempool.h"
#include <typedefs.h>
-#include <indexutil.h>
+#include "indexutil.h"
#include "selelem.h"
#include <typedefs.h>
#include <gmx_fatal.h>
-#include <indexutil.h>
+#include "indexutil.h"
/********************************************************************
* gmx_ana_indexgrps_t functions
#include <gmx_fatal.h>
#include <smalloc.h>
-#include <indexutil.h>
+#include "indexutil.h"
#include "mempool.h"
#include <pbc.h>
#include <vec.h>
-#include <nbsearch.h>
-#include <position.h>
+#include "nbsearch.h"
+#include "position.h"
/*! \internal \brief
* Data structure for neighborhood searches.
#include <string2.h>
#include <vec.h>
-#include <position.h>
-#include <selmethod.h>
-#include <selparam.h>
+#include "position.h"
+#include "selmethod.h"
+#include "selparam.h"
#include "parsetree.h"
#include "position.h"
#include <string2.h>
#include <gmx_fatal.h>
-#include <poscalc.h>
-#include <selection.h>
-#include <selmethod.h>
+#include "poscalc.h"
+#include "selection.h"
+#include "selmethod.h"
#include "keywords.h"
#include "parsetree.h"
#ifndef SELECTION_PARSETREE_H
#define SELECTION_PARSETREE_H
-/*#include <typedefs.h>*/
#include <types/simple.h>
-
-#include <selvalue.h>
+#include "selvalue.h"
struct t_selelem;
struct gmx_ana_indexgrps_t;
#include <pbc.h>
#include <vec.h>
-#include <centerofmass.h>
-#include <indexutil.h>
-#include <poscalc.h>
-#include <position.h>
+#include "centerofmass.h"
+#include "indexutil.h"
+#include "poscalc.h"
+#include "position.h"
/*! \internal \brief
* Collection of \c gmx_ana_poscalc_t structures for the same topology.
#include <typedefs.h>
#include <vec.h>
-#include <indexutil.h>
-#include <position.h>
+#include "indexutil.h"
+#include "position.h"
/*!
* \param[out] pos Output structure.
# For convenience, change to the directory where the files are located
# if the script is run from the root of the source tree.
-dirname=src/gmxlib/selection
+dirname=src/gromacs/selection
if [[ -f $dirname/parser.y && -f $dirname/scanner.l ]] ; then
cd $dirname
fi
-[[ $FORCE || parser.y -nt parser.c ]] && bison -d -t -o parser.c parser.y
-[[ $FORCE || scanner.l -nt scanner.c ]] && flex -o scanner.c scanner.l
+[[ $FORCE || parser.y -nt parser.cpp ]] && bison -d -t -o parser.cpp parser.y
+[[ $FORCE || scanner.l -nt scanner.cpp ]] && flex -o scanner.cpp scanner.l
#include "string2.h"
#include "gmx_fatal.h"
-#include <selmethod.h>
+#include "selmethod.h"
#include "parsetree.h"
#include "selcollection.h"
#include <typedefs.h>
-#include <indexutil.h>
+#include "indexutil.h"
/*! \internal
* \brief
#include <xvgr.h>
#include <gmx_fatal.h>
-#include <poscalc.h>
-#include <selection.h>
-#include <selmethod.h>
+#include "poscalc.h"
+#include "selection.h"
+#include "selmethod.h"
#include "mempool.h"
#include "selcollection.h"
#include <smalloc.h>
#include <gmx_fatal.h>
-#include <indexutil.h>
-#include <poscalc.h>
-#include <position.h>
-#include <selmethod.h>
+#include "indexutil.h"
+#include "poscalc.h"
+#include "position.h"
+#include "selmethod.h"
#include "keywords.h"
#include "mempool.h"
#include <types/simple.h>
-#include <indexutil.h>
-#include <selvalue.h>
+#include "indexutil.h"
+#include "selvalue.h"
struct gmx_ana_poscalc_t;
struct gmx_ana_selparam_t;
#include <macros.h>
#include <string2.h>
-#include <selmethod.h>
+#include "selmethod.h"
#include "selcollection.h"
#include "symrec.h"
#include <smalloc.h>
-#include <indexutil.h>
-#include <position.h>
-#include <selvalue.h>
+#include "indexutil.h"
+#include "position.h"
+#include "selvalue.h"
/*!
* \param[out] val Output structure
#include <smalloc.h>
#include <gmx_fatal.h>
-#include <selmethod.h>
+#include "selmethod.h"
/** Defines the comparison operator for comparison expressions. */
typedef enum
#include <smalloc.h>
#include <vec.h>
-#include <nbsearch.h>
-#include <position.h>
-#include <selmethod.h>
+#include "nbsearch.h"
+#include "position.h"
+#include "selmethod.h"
/*! \internal \brief
* Data structure for distance-based selection method.
#include <smalloc.h>
#include <vec.h>
-#include <indexutil.h>
-#include <position.h>
-#include <selection.h>
-#include <selmethod.h>
+#include "indexutil.h"
+#include "position.h"
+#include "selection.h"
+#include "selmethod.h"
#include "selelem.h"
#include <smalloc.h>
#include <string2.h>
-#include <selmethod.h>
+#include "selmethod.h"
#include "keywords.h"
#include "parsetree.h"
#include <smalloc.h>
#include <vec.h>
-#include <position.h>
-#include <selmethod.h>
+#include "position.h"
+#include "selmethod.h"
/*! \internal \brief
* Data structure for the merging selection modifiers.
#include <smalloc.h>
#include <vec.h>
-#include <position.h>
-#include <selmethod.h>
+#include "position.h"
+#include "selmethod.h"
/*! \internal \brief
* Data structure for the \p permute selection modifier.
#include <smalloc.h>
#include <string2.h>
-#include <indexutil.h>
-#include <poscalc.h>
-#include <position.h>
-#include <selmethod.h>
+#include "indexutil.h"
+#include "poscalc.h"
+#include "position.h"
+#include "selmethod.h"
#include "keywords.h"
#include "selelem.h"
#include <smalloc.h>
#include <string2.h>
-#include <selmethod.h>
+#include "selmethod.h"
#include "keywords.h"
#include "parsetree.h"
#include <config.h>
#endif
-#include <position.h>
-#include <selmethod.h>
+#include "position.h"
+#include "selmethod.h"
/** Evaluates the \p all selection keyword. */
static int
#include <typedefs.h>
#include <gmx_fatal.h>
-#include <poscalc.h>
+#include "poscalc.h"
#include "selelem.h"
#include "symrec.h"
#include <tpxio.h>
#include <vec.h>
-#include <poscalc.h>
-#include <selection.h>
-#include <selmethod.h>
-#include <trajana.h>
+#include "../selection/poscalc.h"
+#include "../selection/selection.h"
+#include "../selection/selmethod.h"
+#include "trajana.h"
/*! \internal \brief
* Data structure for trajectory analysis tools.
#include "filenm.h"
#include "readinp.h"
-#include "indexutil.h"
-#include "selection.h"
+#include "../selection/indexutil.h"
+#include "../selection/selection.h"
#ifdef __cplusplus
extern "C" {
+include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
add_library(gmxana
autocorr.c expfit.c polynomials.c levenmar.c
gmx_pme_error.c )
-target_link_libraries(gmxana md gmx)
+target_link_libraries(gmxana md gmx gromacs)
set_target_properties(gmxana PROPERTIES OUTPUT_NAME "gmxana${GMX_LIBS_SUFFIX}" SOVERSION ${SOVERSION} INSTALL_NAME_DIR "${LIB_INSTALL_DIR}")
# List of programs with single corresponding .c source file,
#include <statutil.h>
#include <xvgr.h>
#include <string2.h>
-#include <trajana.h>
#include "gmx_ana.h"
#include "gmx_fatal.h"
+#include <gromacs/trajana/trajana.h>
typedef struct
{