]> Creatis software - bbtk.git/blob - kernel/src/cmake/bbtkConfigure.h.in
465d77d665bf317abdb4767a2bb88177d0529137
[bbtk.git] / kernel / src / cmake / bbtkConfigure.h.in
1 /*=========================================================================
2                                                                                 
3   Program:   bbtk
4   Module:    $RCSfile: bbtkConfigure.h.in,v $
5   Language:  C++
6   Date:      $Date: 2008/02/01 12:45:58 $
7   Version:   $Revision: 1.2 $
8                                                                                 
9   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10   l'Image). All rights reserved. See Doc/License.txt or
11   http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
12                                                                                 
13      This software is distributed WITHOUT ANY WARRANTY; without even
14      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15      PURPOSE.  See the above copyright notices for more information.
16                                                                                 
17 =========================================================================*/
18
19 #ifndef __bbtkConfigure_h
20 #define __bbtkConfigure_h
21
22 /* This header is configured by BBTK's build process.  */
23
24 /*--------------------------------------------------------------------------*/
25 /* Platform Features                                                        */
26
27 /* Byte order.  */
28 #cmakedefine BBTK_WORDS_BIGENDIAN
29
30 /* Allow access to UINT32_MAX , cf bbtkCommon.h */
31 #define __STDC_LIMIT_MACROS
32
33
34 /* Hardcode the path to BBTK_DATA_ROOT */
35 #ifndef BBTK_DATA_ROOT
36 #define BBTK_DATA_ROOT "@BBTK_DATA_ROOT@"
37 #endif 
38
39 /* Usefull in particular for loadshared where the full path
40  * to the lib is needed */
41 #define BBTK_EXECUTABLE_OUTPUT_PATH "@EXECUTABLE_OUTPUT_PATH@"
42 #define BBTK_LIBRARY_OUTPUT_PATH    "@LIBRARY_OUTPUT_PATH@"
43 #define BBTK_DATA_PATH    "@BBTK_DATA_ROOT@"
44
45 /* For older gcc / broken plateform */
46 #cmakedefine BBTK_NO_ANSI_STRING_STREAM
47
48 /* I guess something important */
49 #cmakedefine CMAKE_HAVE_STDINT_H
50 #cmakedefine CMAKE_HAVE_INTTYPES_H
51 #cmakedefine CMAKE_HAVE_TERMIOS_H
52  
53 /* This variable allows you to have helpful debug statement */
54 /* That are in between #ifdef / endif in the bbtk code */
55 /* That means if BBTK_DEBUG is OFF there shouldn't be any 'cout' at all ! */
56 /* only cerr, for instance 'invalid file' will be allowed */
57 #cmakedefine BBTK_DEBUG
58
59 /* Whether we are building shared libraries.  */
60 /* This was important as long as BBTK is LGPL */
61 #cmakedefine BUILD_SHARED_LIBS
62
63 /* BBTK uses __FUNCTION__ which is not ANSI C, but C99 */
64 #cmakedefine BBTK_COMPILER_HAS_FUNCTION
65
66 #define BBTK_SIZEOF_LONG @BBTK_SIZEOF_LONG@
67
68 /* Special time structure support */
69 #cmakedefine CMAKE_HAVE_SYS_TIMES_H
70 #cmakedefine CMAKE_HAVE_SYS_TIMEB_H
71
72 /* GetMacAddress require a lot of include file to access low level API */
73 #cmakedefine CMAKE_HAVE_UNISTD_H
74 #cmakedefine CMAKE_HAVE_STDLIB_H
75 #cmakedefine CMAKE_HAVE_SYS_IOCTL_H
76 #cmakedefine CMAKE_HAVE_SYS_SOCKET_H
77 #cmakedefine CMAKE_HAVE_SYS_SOCKIO_H
78 #cmakedefine CMAKE_HAVE_NET_IF_H
79 #cmakedefine CMAKE_HAVE_NETINET_IN_H
80 #cmakedefine CMAKE_HAVE_NET_IF_DL_H
81 #cmakedefine CMAKE_HAVE_NET_IF_ARP_H
82 #cmakedefine HAVE_SA_LEN
83
84 /*--------------------------------------------------------------------------*/
85 /* BBTK Versioning                                                          */
86
87 /* Version number.  */
88 #ifndef BBTK_VERSION
89 #define BBTK_MAJOR_VERSION @BBTK_MAJOR_VERSION@
90 #define BBTK_MINOR_VERSION @BBTK_MINOR_VERSION@
91 #define BBTK_BUILD_VERSION @BBTK_BUILD_VERSION@
92 #define BBTK_VERSION "@BBTK_VERSION@"
93 #endif
94
95 #endif