1
0
Fork 0
mirror of https://github.com/cosmo-sims/monofonIC.git synced 2024-09-19 17:03:45 +02:00
monofonIC/include/cmake_config.hh.in

38 lines
1,020 B
C++
Raw Normal View History

#pragma once
#define USE_PRECISION_${CODE_PRECISION}
#ifdef __cplusplus
constexpr char CMAKE_BUILDTYPE_STR[] = "${CMAKE_BUILD_TYPE}";
#if defined(USE_PRECISION_FLOAT)
constexpr char CMAKE_PRECISION_STR[] = "single";
#elif defined(USE_PRECISION_DOUBLE)
constexpr char CMAKE_PRECISION_STR[] = "double";
#elif defined(USE_PRECISION_LONGDOUBLE)
constexpr char CMAKE_PRECISION_STR[] = "long double";
#endif
#define USE_CONVOLVER_${CONVOLVER_TYPE}
#if defined(USE_CONVOLVER_ORSZAG)
constexpr char CMAKE_CONVOLVER_STR[] = "Orszag3/2";
#elif defined(USE_CONVOLVER_NAIVE)
constexpr char CMAKE_CONVOLVER_STR[] = "Aliased";
#endif
#if defined(ENABLE_PLT)
constexpr char CMAKE_PLT_STR[] = "PLT corr. on";
#else
constexpr char CMAKE_PLT_STR[] = "PLT corr. off";
#endif
// These variables are autogenerated and compiled
// into the library by the version.cmake script. do not touch!
extern "C"
{
extern const char *GIT_TAG;
extern const char *GIT_REV;
extern const char *GIT_BRANCH;
}
#endif // __cplusplus