]> Creatis software - crea.git/blob - src/creaConfigure.h.in
#3180 crea Feature New Normal Future - Set wx-config for wxWidgets 2.8
[crea.git] / src / creaConfigure.h.in
1 /*
2 # ---------------------------------------------------------------------
3 #
4 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
5 #                        pour la Santé)
6 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
7 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
8 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
9 #
10 #  This software is governed by the CeCILL-B license under French law and 
11 #  abiding by the rules of distribution of free software. You can  use, 
12 #  modify and/ or redistribute the software under the terms of the CeCILL-B 
13 #  license as circulated by CEA, CNRS and INRIA at the following URL 
14 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
15 #  or in the file LICENSE.txt.
16 #
17 #  As a counterpart to the access to the source code and  rights to copy,
18 #  modify and redistribute granted by the license, users are provided only
19 #  with a limited warranty  and the software's author,  the holder of the
20 #  economic rights,  and the successive licensors  have only  limited
21 #  liability. 
22 #
23 #  The fact that you are presently reading this means that you have had
24 #  knowledge of the CeCILL-B license and that you accept its terms.
25 # ------------------------------------------------------------------------ */ 
26
27 /*=========================================================================
28                                                                                 
29   Program:   crea
30   Module:    $RCSfile: creaConfigure.h.in,v $
31   Language:  C++
32   Date:      $Date: 2012/11/15 10:43:26 $
33   Version:   $Revision: 1.4 $
34                                                                                 
35                                                                                 
36      This software is distributed WITHOUT ANY WARRANTY; without even
37      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
38      PURPOSE.  See the above copyright notices for more information.
39                                                                                 
40 =========================================================================*/
41
42 #ifndef __creaConfigure_h
43 #define __creaConfigure_h
44
45 /* This header is configured by CREA's build process.  */
46
47 /*--------------------------------------------------------------------------*/
48 /* Platform Features                                                        */
49
50 /* Byte order.  */
51 #cmakedefine CREA_WORDS_BIGENDIAN
52
53 /* Allow access to UINT32_MAX , cf creaCommon.h */
54 #ifndef __STDC_LIMIT_MACROS
55 #define __STDC_LIMIT_MACROS
56 #endif
57
58 /* Hardcode the path to CREA_DATA_ROOT */
59 #ifndef CREA_DATA_ROOT
60 #define CREA_DATA_ROOT "@CREA_DATA_ROOT@"
61 #endif 
62
63 /* Usefull in particular for loadshared where the full path
64  * to the lib is needed */
65 #define CREA_EXECUTABLE_OUTPUT_PATH "@EXECUTABLE_OUTPUT_PATH@"
66 #define CREA_LIBRARY_OUTPUT_PATH    "@LIBRARY_OUTPUT_PATH@"
67 #define CREA_DATA_PATH    "@CREA_DATA_ROOT@"
68
69 /* For older gcc / broken plateform */
70 #cmakedefine CREA_NO_ANSI_STRING_STREAM
71
72 /* I guess something important */
73 #cmakedefine CMAKE_HAVE_STDINT_H
74 #cmakedefine CMAKE_HAVE_INTTYPES_H
75 #cmakedefine CMAKE_HAVE_TERMIOS_H
76  
77 /* This variable allows you to have helpful debug statement */
78 /* That are in between #ifdef / endif in the crea code */
79 /* That means if CREA_DEBUG is OFF there shouldn't be any 'cout' at all ! */
80 /* only cerr, for instance 'invalid file' will be allowed */
81 #cmakedefine CREA_DEBUG
82
83 /* Whether we are building shared libraries.  */
84 /* This was important as long as CREA is LGPL */
85 #cmakedefine BUILD_SHARED_LIBS
86
87 /* CREA uses __FUNCTION__ which is not ANSI C, but C99 */
88 #cmakedefine CREA_COMPILER_HAS_FUNCTION
89
90 #define CREA_SIZEOF_LONG @CREA_SIZEOF_LONG@
91
92 /* Special time structure support */
93 #cmakedefine CMAKE_HAVE_SYS_TIMES_H
94 #cmakedefine CMAKE_HAVE_SYS_TIMEB_H
95
96 /* GetMacAddress require a lot of include file to access low level API */
97 #cmakedefine CMAKE_HAVE_UNISTD_H
98 #cmakedefine CMAKE_HAVE_STDLIB_H
99 #cmakedefine CMAKE_HAVE_SYS_IOCTL_H
100 #cmakedefine CMAKE_HAVE_SYS_SOCKET_H
101 #cmakedefine CMAKE_HAVE_SYS_SOCKIO_H
102 #cmakedefine CMAKE_HAVE_NET_IF_H
103 #cmakedefine CMAKE_HAVE_NETINET_IN_H
104 #cmakedefine CMAKE_HAVE_NET_IF_DL_H
105 #cmakedefine CMAKE_HAVE_NET_IF_ARP_H
106 #cmakedefine HAVE_SA_LEN
107
108 /*--------------------------------------------------------------------------*/
109 /* CREA Versioning                                                          */
110
111 /* Version number.  */
112 #ifndef CREA_VERSION
113 #define CREA_MAJOR_VERSION @CREA_MAJOR_VERSION@
114 #define CREA_MINOR_VERSION @CREA_MINOR_VERSION@
115 #define CREA_BUILD_VERSION @CREA_BUILD_VERSION@
116 #define CREA_VERSION "@CREA_VERSION@"
117 #endif
118
119 #endif