-
Notifications
You must be signed in to change notification settings - Fork 13
/
MyProjectConfigure.h.in
86 lines (74 loc) · 2.39 KB
/
MyProjectConfigure.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/*============================================================================
#
# MYPROJECT: A software package for whatever.
#
# Copyright (c) University College London (UCL). All rights reserved.
#
# This software is distributed WITHOUT ANY WARRANTY; without even
# the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE.
#
# See LICENSE.txt in the top level directory for details.
#
#============================================================================*/
/*
* here is where system computed values get stored these values should only
* change when the target compile platform changes
*/
/* what byte order */
/* All compilers that support Mac OS X define either __BIG_ENDIAN__ or
__LITTLE_ENDIAN__ to match the endianness of the architecture being
compiled for. This is not necessarily the same as the architecture of
the machine doing the building. In order to support Universal Binaries on
Mac OS X, we prefer those defines to decide the endianness.
On other platform, we use the result of the TRY_RUN. */
#if !defined(__APPLE__)
#cmakedefine CMAKE_WORDS_BIGENDIAN
#ifdef CMAKE_WORDS_BIGENDIAN
#define MYPROJECT_WORDS_BIGENDIAN
#endif
#elif defined(__BIG_ENDIAN__)
#define CMAKE_WORDS_BIGENDIAN
#define MYPROJECT_WORDS_BIGENDIAN
#endif
#if defined(__CYGWIN__)
#ifndef WIN32
#define WIN32 1
#endif
#ifndef _WIN32
#define _WIN32 1
#endif
#endif
/* what threading system are we using */
#cmakedefine CMAKE_USE_PTHREADS
#ifdef CMAKE_USE_PTHREADS
#define MYPROJECT_USE_PTHREADS
#endif
#cmakedefine CMAKE_USE_SPROC
#ifdef CMAKE_USE_SPROC
#define MYPROJECT_USE_SPROC
#endif
#cmakedefine CMAKE_HP_PTHREADS
#ifdef CMAKE_HP_PTHREADS
#define MYPROJECT_HP_PTHREADS
#endif
#cmakedefine CMAKE_USE_WIN32_THREADS
#ifdef CMAKE_USE_WIN32_THREADS
#define MYPROJECT_USE_WIN32_THREADS
#endif
#cmakedefine MYPROJECT_BUILD_SHARED_LIBS
#ifdef MYPROJECT_BUILD_SHARED_LIBS
#define MYPROJECTDLL
#else
#define MYPROJECTSTATIC
#endif
#cmakedefine CMAKE_NO_STD_NAMESPACE
#cmakedefine CMAKE_NO_ANSI_STREAM_HEADERS
#cmakedefine CMAKE_NO_ANSI_STRING_STREAM
#cmakedefine CMAKE_NO_ANSI_FOR_SCOPE
#define MYPROJECT_VERSION_MAJOR @MYPROJECT_VERSION_MAJOR@
#define MYPROJECT_VERSION_MINOR @MYPROJECT_VERSION_MINOR@
#define MYPROJECT_VERSION_PATCH @MYPROJECT_VERSION_PATCH@
#define MYPROJECT_VERSION_STRING "@MYPROJECT_VERSION_STRING@"
/* Specific platform checks */
#cmakedefine HAVE_MKSTEMPS