]> Creatis software - bbtk.git/blob - kernel/src/cmake/bbtkConfigure.h.in
#3202 BBTK Feature New Normal - fast algorithm for ImageBoundaries box
[bbtk.git] / kernel / src / cmake / bbtkConfigure.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                                                                                 
30   Program:   bbtk
31   Module:    $RCSfile: bbtkConfigure.h.in,v $
32   Language:  C++
33   Date:      $Date: 2012/11/16 08:49:22 $
34   Version:   $Revision: 1.5 $
35                                                                                 
36 =========================================================================*/
37
38 #ifndef __bbtkConfigure_h
39 #define __bbtkConfigure_h
40
41 /* This header is configured by BBTK's build process.  */
42
43 /*--------------------------------------------------------------------------*/
44 /* Platform Features                                                        */
45
46 /* Byte order.  */
47 #cmakedefine BBTK_WORDS_BIGENDIAN
48
49 /* Allow access to UINT32_MAX , cf bbtkCommon.h */
50 #ifndef __STDC_LIMIT_MACROS
51 #define __STDC_LIMIT_MACROS
52 #endif
53
54 /* Hardcode the path to BBTK_DATA_ROOT */
55 #ifndef BBTK_DATA_ROOT
56 #define BBTK_DATA_ROOT "@BBTK_DATA_ROOT@"
57 #endif 
58
59 /* Usefull in particular for loadshared where the full path
60  * to the lib is needed */
61 #define BBTK_EXECUTABLE_OUTPUT_PATH "@EXECUTABLE_OUTPUT_PATH@"
62 #define BBTK_LIBRARY_OUTPUT_PATH    "@LIBRARY_OUTPUT_PATH@"
63 #define BBTK_DATA_PATH    "@BBTK_DATA_ROOT@"
64
65 /* For older gcc / broken plateform */
66 #cmakedefine BBTK_NO_ANSI_STRING_STREAM
67
68 /* I guess something important */
69 #cmakedefine CMAKE_HAVE_STDINT_H
70 #cmakedefine CMAKE_HAVE_INTTYPES_H
71 #cmakedefine CMAKE_HAVE_TERMIOS_H
72  
73 /* This variable allows you to have helpful debug statement */
74 /* That are in between #ifdef / endif in the bbtk code */
75 /* That means if BBTK_DEBUG is OFF there shouldn't be any 'cout' at all ! */
76 /* only cerr, for instance 'invalid file' will be allowed */
77 #cmakedefine BBTK_DEBUG
78
79 /* Whether we are building shared libraries.  */
80 /* This was important as long as BBTK is LGPL */
81 #cmakedefine BUILD_SHARED_LIBS
82
83 /* BBTK uses __FUNCTION__ which is not ANSI C, but C99 */
84 #cmakedefine BBTK_COMPILER_HAS_FUNCTION
85
86 #define BBTK_SIZEOF_LONG @BBTK_SIZEOF_LONG@
87
88 /* Special time structure support */
89 #cmakedefine CMAKE_HAVE_SYS_TIMES_H
90 #cmakedefine CMAKE_HAVE_SYS_TIMEB_H
91
92 /* GetMacAddress require a lot of include file to access low level API */
93 #cmakedefine CMAKE_HAVE_UNISTD_H
94 #cmakedefine CMAKE_HAVE_STDLIB_H
95 #cmakedefine CMAKE_HAVE_SYS_IOCTL_H
96 #cmakedefine CMAKE_HAVE_SYS_SOCKET_H
97 #cmakedefine CMAKE_HAVE_SYS_SOCKIO_H
98 #cmakedefine CMAKE_HAVE_NET_IF_H
99 #cmakedefine CMAKE_HAVE_NETINET_IN_H
100 #cmakedefine CMAKE_HAVE_NET_IF_DL_H
101 #cmakedefine CMAKE_HAVE_NET_IF_ARP_H
102 #cmakedefine HAVE_SA_LEN
103
104 /*--------------------------------------------------------------------------*/
105 /* BBTK Versioning                                                          */
106
107 /* Version number.  */
108 #ifndef BBTK_VERSION
109 #define BBTK_MAJOR_VERSION @BBTK_MAJOR_VERSION@
110 #define BBTK_MINOR_VERSION @BBTK_MINOR_VERSION@
111 #define BBTK_BUILD_VERSION @BBTK_BUILD_VERSION@
112 #define BBTK_VERSION @BBTK_VERSION@
113 #define BBTK_VERSION_STRING "@BBTK_VERSION@"
114 #endif
115
116 #endif