-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathconfig.h.in
28 lines (23 loc) · 1018 Bytes
/
config.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once
#define PROJECT_NAME "@PROJECT_NAME@"
#define PROJECT_VERSION "@PROJECT_VERSION@"
#define PROJECT_VERSION_MAJOR @PROJECT_VERSION_MAJOR@
#define PROJECT_VERSION_MINOR @PROJECT_VERSION_MINOR@
#define PROJECT_VERSION_PATCH @PROJECT_VERSION_PATCH@
#define EZ_BUILD_TYPE "@CMAKE_BUILD_TYPE@"
#define EZ_BUILT_BY "@CMAKE_CXX_COMPILER_ID@"
#define EZ_BUILT_BY_VERSION "@CMAKE_CXX_COMPILER_VERSION@"
#cmakedefine USE_OPENMP
#ifdef USE_OPENMP
#define EASEA_PRAGMA_OMP_PARALLEL _Pragma("omp parallel for schedule(runtime)")
#define EASEA_PRAGMA_OMP_CRITICAL _Pragma("omp critical")
#define EASEA_PRAGMA_OMP_ATOMIC _Pragma("omp atomic")
#else
#define OMP_NUM_THREADS 1
#endif
// OS defines
#if defined(linux) || defined(__linux) || (__APPLE__) || (macintosh) || (Macintosh)
#define OS_UNIX
#elif defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(_WIN32) || defined(_WIN64) || defined(__WIN32__) || defined(__WINDOWS__) || defined(__TOS_WIN__)
#define OS_WINDOWS
#endif