One step closer to the final goal of only having src/ there.
This wasn't even necessary except for a few rare cases.
Also cleaned up the cppcheck rules slightly.
Change-Id: Ifc65fbb48699d0e4bb5c55b90a2c41b0255d353d
directories and move code into proper modules.
For similar historical reasons, the include path also includes
directories and move code into proper modules.
For similar historical reasons, the include path also includes
-`src/gromacs/legacyheaders/` and `src/gromacs/gmxpreprocess/` (the latter only
-for part of the source). New code should not depend on these.
+`src/gromacs/legacyheaders/`. It is preferred that new code does not depend on
+this.
Documentation organization
==========================
Documentation organization
==========================
#
# This file is part of the GROMACS molecular simulation package.
#
#
# This file is part of the GROMACS molecular simulation package.
#
-# Copyright (c) 2013, by the GROMACS development team, led by
+# Copyright (c) 2013,2014, by the GROMACS development team, led by
# Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
# and including many others, as listed in the AUTHORS file in the
# top-level source directory and at http://www.gromacs.org.
# Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
# and including many others, as listed in the AUTHORS file in the
# top-level source directory and at http://www.gromacs.org.
set(testname "LegacyToolsTests")
set(exename "legacy-tools-test")
set(testname "LegacyToolsTests")
set(exename "legacy-tools-test")
-include_directories(${CMAKE_SOURCE_DIR}/src/gromacs/gmxpreprocess)
-
gmx_build_unit_test(
${testname}
${exename}
gmx_build_unit_test(
${testname}
${exename}
set(testname "PreprocessingTests")
set(exename "preprocessing-tools-test")
set(testname "PreprocessingTests")
set(exename "preprocessing-tools-test")
-#include_directories(${CMAKE_SOURCE_DIR}/src/gromacs/gmxpreprocess)
-
gmx_build_unit_test(
${testname}
${exename}
gmx_build_unit_test(
${testname}
${exename}
# To help us fund GROMACS development, we humbly ask that you cite
# the research papers on the package. Check out http://www.gromacs.org.
# To help us fund GROMACS development, we humbly ask that you cite
# the research papers on the package. Check out http://www.gromacs.org.
-include_directories(${CMAKE_SOURCE_DIR}/src/gromacs/gmxpreprocess)
-
file(GLOB MDRUN_SOURCES mdrun/*.c mdrun/*.cpp)
# make an "object library" that we can re-use for multiple targets
add_library(mdrun_objlib OBJECT ${MDRUN_SOURCES})
file(GLOB MDRUN_SOURCES mdrun/*.c mdrun/*.cpp)
# make an "object library" that we can re-use for multiple targets
add_library(mdrun_objlib OBJECT ${MDRUN_SOURCES})
#include "coulomb.h"
#include "constr.h"
#include "shellfc.h"
#include "coulomb.h"
#include "constr.h"
#include "shellfc.h"
+#include "gromacs/gmxpreprocess/compute_io.h"
#include "checkpoint.h"
#include "mtop_util.h"
#include "sighandler.h"
#include "checkpoint.h"
#include "mtop_util.h"
#include "sighandler.h"
#include "membed.h"
#include "pbc.h"
#include "readinp.h"
#include "membed.h"
#include "pbc.h"
#include "readinp.h"
+#include "gromacs/gmxpreprocess/readir.h"
/* information about scaling center */
typedef struct {
/* information about scaling center */
typedef struct {
#include "txtdump.h"
#include "gmx_detect_hardware.h"
#include "gmx_omp_nthreads.h"
#include "txtdump.h"
#include "gmx_detect_hardware.h"
#include "gmx_omp_nthreads.h"
-#include "calc_verletbuf.h"
+#include "gromacs/gmxpreprocess/calc_verletbuf.h"
#include "gmx_fatal_collective.h"
#include "membed.h"
#include "macros.h"
#include "gmx_fatal_collective.h"
#include "membed.h"
#include "macros.h"
set(testname "MdrunTests")
set(exename "mdrun-test")
set(testname "MdrunTests")
set(exename "mdrun-test")
-include_directories(${CMAKE_SOURCE_DIR}/src/gromacs/gmxpreprocess)
-
gmx_build_unit_test(
${testname}
${exename}
gmx_build_unit_test(
${testname}
${exename}
--quiet
${_outputopt})
set(_c_flags
--quiet
${_outputopt})
set(_c_flags
- -I src/gromacs/gmxpreprocess
- -I src/programs/mdrun
--suppress=variableScope
--suppress=unnecessaryForwardDeclaration
--suppress=unusedVariable
--suppress=variableScope
--suppress=unnecessaryForwardDeclaration
--suppress=unusedVariable
--suppress=invalidscanf
--suppress=sizeofCalculation
--suppress=missingInclude:src/programs/mdrun/gmx_gpu_utils/gmx_gpu_utils.cu
--suppress=invalidscanf
--suppress=sizeofCalculation
--suppress=missingInclude:src/programs/mdrun/gmx_gpu_utils/gmx_gpu_utils.cu
- --suppress=*:src/external/Random123-1.08/include/Random123/features/compilerfeatures.h
+ --suppress=*:src/external/Random123-1.08/include/Random123/features/compilerfeatures.h
--inline-suppr)
set(_cxx_flags
-D__cplusplus
--inline-suppr)
set(_cxx_flags
-D__cplusplus