# Required for config.h, maybe should only be set in src/CMakeLists.txt
include_directories(${CMAKE_BINARY_DIR}/src)
# Required for now to make old code compile
-include_directories(${CMAKE_BINARY_DIR}/src/gromacs/legacyheaders)
include_directories(${CMAKE_SOURCE_DIR}/src/gromacs/legacyheaders)
include(gmxCheckBuildUserTime)
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
-#include "gmx_header_config.h"
+#include "gromacs/utility/gmx_header_config.h"
#include <string.h>
#include <time.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
-#include "gmx_header_config.h"
+#include "gromacs/utility/gmx_header_config.h"
#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
-#include "gmx_header_config.h"
+#include "gromacs/utility/gmx_header_config.h"
#include <gmx_random.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
-#include "gmx_header_config.h"
+#include "gromacs/utility/gmx_header_config.h"
#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
-#include "gmx_header_config.h"
+#include "gromacs/utility/gmx_header_config.h"
#include <time.h>
#ifdef GMX_NATIVE_WINDOWS
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
-#include "gmx_header_config.h"
+#include "gromacs/utility/gmx_header_config.h"
#ifdef GMX_CRAY_XT3
#undef HAVE_PWD_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
-#include "gmx_header_config.h"
+#include "gromacs/utility/gmx_header_config.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
-#include "gmx_header_config.h"
+#include "gromacs/utility/gmx_header_config.h"
#include "string2.h"
#include "smalloc.h"
-# includes: Nothing to build, just configuration and installation
-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/gmx_header_config.h.cmakein ${CMAKE_CURRENT_BINARY_DIR}/gmx_header_config.h)
-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/gmx_header_config.h
- DESTINATION ${INCL_INSTALL_DIR}/gromacs/legacyheaders
- COMPONENT development
-)
-
+# includes: Nothing to build, just installation
install(DIRECTORY . DESTINATION ${INCL_INSTALL_DIR}/gromacs/legacyheaders
COMPONENT development
PATTERN "Makefile*" EXCLUDE
* When reading the PATH environment variable, Unix separates entries
* with colon, while windows uses semicolon.
*/
-#include "gmx_header_config.h"
+#include "../utility/gmx_header_config.h"
#ifdef GMX_NATIVE_WINDOWS
#define DIR_SEPARATOR '\\'
#define PATH_SEPARATOR ";"
#include <ctype.h>
#include <time.h>
#include <errno.h>
-#include "gmx_header_config.h"
+#include "../utility/gmx_header_config.h"
/*#include "typedefs.h"*/
#include "types/simple.h"
#define int64_t long long
#endif
-#include "gmx_header_config.h"
+#include "../utility/gmx_header_config.h"
#if (defined GMX_NATIVE_WINDOWS || defined GMX_CYGWIN || defined GMX_INTERNAL_XDR)
#include "gmx_system_xdr.h"
#else
--- /dev/null
+gmx_header_config.h
file(GLOB UTILITY_SOURCES *.cpp)
set(LIBGROMACS_SOURCES ${LIBGROMACS_SOURCES} ${UTILITY_SOURCES} PARENT_SCOPE)
+# Needs to be created in the source tree to allow relative paths in headers to
+# be resolved correctly before installation
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/gmx_header_config.h.cmakein
+ ${CMAKE_CURRENT_SOURCE_DIR}/gmx_header_config.h)
+
set(UTILITY_PUBLIC_HEADERS
arrayref.h
common.h
file.h
flags.h
format.h
+ gmx_header_config.h
gmxassert.h
uniqueptr.h)
install(FILES ${UTILITY_PUBLIC_HEADERS}
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
-#include "gmx_header_config.h"
+#include "gromacs/utility/gmx_header_config.h"
#include <string.h>
#include <math.h>