2 # ---------------------------------------------------------------------
4 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
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
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.
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
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 # ------------------------------------------------------------------------ */
27 /*=========================================================================
30 Module: $RCSfile: creaConfigure.h.in,v $
32 Date: $Date: 2012/11/15 10:43:26 $
33 Version: $Revision: 1.4 $
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.
40 =========================================================================*/
42 #ifndef __creaConfigure_h
43 #define __creaConfigure_h
45 /* This header is configured by CREA's build process. */
47 /*--------------------------------------------------------------------------*/
48 /* Platform Features */
51 #cmakedefine CREA_WORDS_BIGENDIAN
53 /* Allow access to UINT32_MAX , cf creaCommon.h */
54 #ifndef __STDC_LIMIT_MACROS
55 #define __STDC_LIMIT_MACROS
58 /* Hardcode the path to CREA_DATA_ROOT */
59 #ifndef CREA_DATA_ROOT
60 #define CREA_DATA_ROOT "@CREA_DATA_ROOT@"
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@"
69 /* For older gcc / broken plateform */
70 #cmakedefine CREA_NO_ANSI_STRING_STREAM
72 /* I guess something important */
73 #cmakedefine CMAKE_HAVE_STDINT_H
74 #cmakedefine CMAKE_HAVE_INTTYPES_H
75 #cmakedefine CMAKE_HAVE_TERMIOS_H
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
83 /* Whether we are building shared libraries. */
84 /* This was important as long as CREA is LGPL */
85 #cmakedefine BUILD_SHARED_LIBS
87 /* CREA uses __FUNCTION__ which is not ANSI C, but C99 */
88 #cmakedefine CREA_COMPILER_HAS_FUNCTION
90 #define CREA_SIZEOF_LONG @CREA_SIZEOF_LONG@
92 /* Special time structure support */
93 #cmakedefine CMAKE_HAVE_SYS_TIMES_H
94 #cmakedefine CMAKE_HAVE_SYS_TIMEB_H
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
108 /*--------------------------------------------------------------------------*/
109 /* CREA Versioning */
111 /* Version number. */
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@"