1 #-----------------------------------------------------------------------------
2 # messages compilation options
3 OPTION ( BBTK_COMPILE_MESSAGES "Compile bbtk messages ?" ON)
4 OPTION ( BBTK_COMPILE_DEBUG_MESSAGES "Compile bbtk debug messages ?" ON)
5 OPTION ( BBTK_COMPILE_WARNING_MESSAGES "Compile bbtk warning messages ?" ON)
6 OPTION ( BBTK_COMPILE_ERROR_MESSAGES "Compile bbtk error messages ?" ON)
7 #-----------------------------------------------------------------------------
8 OPTION(BUILD_APPLICATIONS "Build Applications (bbi, bbfy, ...)" ON)
9 OPTION(BUILD_BBS_APPLI_BINARIES "Build binaries for bbs applications of all packages" OFF)
10 ##EED SWITCH_ON_IF_BUILD_ALL(BUILD_BBS_APPLI_BINARIES)
11 #-----------------------------------------------------------------------------
12 OPTION(BUILD_BBTK_DOC "Build documentation for bbtk." OFF)
13 SWITCH_ON_IF_BUILD_ALL(BUILD_BBTK_DOC)
14 #-----------------------------------------------------------------------------
17 OPTION(BUILD_BBTK_DOC_PACKAGE
18 "Build bbtk packages documentation (bbi+dot)." ON)
19 OPTION(BUILD_BBTK_DOC_DOXYGEN
20 "Build doxygen documentation (doxygen)." ON)
21 OPTION(BUILD_BBTK_DOC_GUIDES_PDF
22 "Build bbtk Guides', PDF format (latex)." ON)
23 OPTION(BUILD_BBTK_DOC_GUIDES_HTML
24 "Build bbtk Guides', HTML format (latex+tth)." ON)
28 IF(BUILD_BBTK_DOC_PACKAGE)
29 SET(BUILD_BBTK_DOC_PACKAGE OFF CACHE BOOL
30 "Build bbtk packages documentation (bbdoc+dot)." FORCE)
31 ENDIF(BUILD_BBTK_DOC_PACKAGE)
32 IF(BUILD_BBTK_DOC_DOXYGEN)
33 SET(BUILD_BBTK_DOC_DOXYGEN OFF CACHE BOOL
34 "Build doxygen documentation. (doxygen)" FORCE)
35 ENDIF(BUILD_BBTK_DOC_DOXYGEN)
37 IF(BUILD_BBTK_DOC_GUIDES_PDF)
38 SET(BUILD_BBTK_DOC_GUIDES_PDF OFF CACHE BOOL
39 "Build bbtk Guides', PDF format (latex)." FORCE)
40 ENDIF(BUILD_BBTK_DOC_GUIDES_PDF)
42 IF(BUILD_BBTK_DOC_GUIDES_HTML)
43 SET(BUILD_BBTK_DOC_GUIDES_HTML OFF CACHE BOOL
44 "Build bbtk Guides', HTML format (latex tth)." FORCE)
45 ENDIF(BUILD_BBTK_DOC_GUIDES_HTML)
46 # IF(BUILD_BBTK_DOC_SCRIPTS)
47 # SET(BUILD_BBTK_DOC_SCRIPTS_HTML OFF CACHE BOOL
48 # "Build bbtk scripts documentation (bbi+dot)." FORCE)
49 # ENDIF(BUILD_BBTK_DOC_SCRIPTS)
52 #-----------------------------------------------------------------------------
54 #-----------------------------------------------------------------------------
56 #SET(BBTK_SHIPPED_BOOST boost_1_35_0 CACHE INTERNAL "Shipped boost dir" FORCE)
57 #OPTION(BBTK_USE_SHIPPED_BOOST
58 # "Use the shipped boost C++ library (${BBTK_SHIPPED_BOOST})" ON)
59 #-----------------------------------------------------------------------------
61 #-----------------------------------------------------------------------------
62 OPTION(BBTK_USE_WXWIDGETS "Build bbtk with wxWidgets ?" OFF)
63 IF(BBTK_USE_WXWIDGETS)
64 SET(USE_WXWIDGETS ON CACHE BOOL "Use WxWidgets" FORCE)
65 ELSE(BBTK_USE_WXWIDGETS)
66 SET(USE_WXWIDGETS OFF CACHE BOOL "Use WxWidgets" FORCE)
67 ENDIF(BBTK_USE_WXWIDGETS)
68 #-----------------------------------------------------------------------------
70 #-----------------------------------------------------------------------------
71 # LG 25/05/09 : KW NOT SUPPORTED ANYMORE
72 #OPTION(BBTK_USE_KWWIDGETS "Build bbtk with KWWidgets ?" OFF)
73 IF (BBTK_USE_KWWIDGETS)
74 SET(USE_KWWIDGETS ON CACHE BOOL "Use KWWidgets" FORCE)
75 ELSE (BBTK_USE_KWWIDGETS)
76 SET(USE_KWWIDGETS OFF CACHE BOOL "Use KWWidgets" FORCE)
77 ENDIF (BBTK_USE_KWWIDGETS)
78 #SWITCH_ON_IF_BUILD_ALL(BBTK_USE_KWWIDGETS)
79 #-----------------------------------------------------------------------------
81 #-----------------------------------------------------------------------------
82 OPTION(BBTK_USE_QT "Build bbtk with QT ?" OFF)
84 SET(USE_QT4 ON CACHE BOOL "Use QT" FORCE)
86 SET(USE_QT4 OFF CACHE BOOL "Use QT" FORCE)
88 SWITCH_ON_IF_BUILD_ALL(BBTK_USE_QT)
89 #-----------------------------------------------------------------------------
92 #-----------------------------------------------------------------------------
96 MESSAGE(STATUS "=======================================")
97 MESSAGE(STATUS "Resolving ITK images options...")
98 # images compilation option
99 OPTION ( itk_IMAGE_DIM_2 "itk : Compile 2D images" ON)
100 OPTION ( itk_IMAGE_DIM_3 "itk : Compile 3D images" ON)
101 OPTION ( itk_IMAGE_DIM_4 "itk : Compile 4D images" ON)
102 OPTION ( itk_IMAGE_TYPE_CHAR "itk : Compile char images" ON)
103 OPTION ( itk_IMAGE_TYPE_UCHAR "itk : Compile unsigned char images" ON)
104 OPTION ( itk_IMAGE_TYPE_SHORT "itk : Compile short images" ON)
105 OPTION ( itk_IMAGE_TYPE_USHORT "itk : Compile unsigned short images" ON)
106 OPTION ( itk_IMAGE_TYPE_INT "itk : Compile int images" ON)
107 OPTION ( itk_IMAGE_TYPE_UINT "itk : Compile unsigned int images" ON)
108 OPTION ( itk_IMAGE_TYPE_FLOAT "itk : Compile float images" ON)
109 OPTION ( itk_IMAGE_TYPE_DOUBLE "itk : Compile double images" ON)
111 IF ( itk_IMAGE_DIM_2 )
112 CREA_DEFINE( BBTK_ITK_IMAGE_DIM_2 )
113 ENDIF ( itk_IMAGE_DIM_2 )
115 IF ( itk_IMAGE_DIM_3 )
116 CREA_DEFINE( BBTK_ITK_IMAGE_DIM_3 )
117 ENDIF ( itk_IMAGE_DIM_3 )
119 IF ( itk_IMAGE_DIM_4 )
120 CREA_DEFINE( BBTK_ITK_IMAGE_DIM_4 )
121 ENDIF ( itk_IMAGE_DIM_4 )
123 IF ( itk_IMAGE_TYPE_CHAR )
124 CREA_DEFINE( BBTK_ITK_IMAGE_TYPE_int8_t )
125 ENDIF ( itk_IMAGE_TYPE_CHAR )
127 IF ( itk_IMAGE_TYPE_UCHAR )
128 CREA_DEFINE( BBTK_ITK_IMAGE_TYPE_uint8_t )
129 ENDIF ( itk_IMAGE_TYPE_UCHAR )
131 IF ( itk_IMAGE_TYPE_SHORT )
132 CREA_DEFINE( BBTK_ITK_IMAGE_TYPE_int16_t )
133 ENDIF ( itk_IMAGE_TYPE_SHORT )
135 IF ( itk_IMAGE_TYPE_USHORT )
136 CREA_DEFINE( BBTK_ITK_IMAGE_TYPE_uint16_t )
137 ENDIF ( itk_IMAGE_TYPE_USHORT )
139 IF ( itk_IMAGE_TYPE_INT )
140 CREA_DEFINE( BBTK_ITK_IMAGE_TYPE_int32_t )
141 ENDIF ( itk_IMAGE_TYPE_INT )
143 IF ( itk_IMAGE_TYPE_UINT )
144 CREA_DEFINE( BBTK_ITK_IMAGE_TYPE_uint32_t )
145 ENDIF ( itk_IMAGE_TYPE_UINT )
147 IF ( itk_IMAGE_TYPE_FLOAT )
148 CREA_DEFINE( BBTK_ITK_IMAGE_TYPE_float )
149 ENDIF ( itk_IMAGE_TYPE_FLOAT )
151 IF ( itk_IMAGE_TYPE_DOUBLE )
152 CREA_DEFINE( BBTK_ITK_IMAGE_TYPE_double )
153 ENDIF ( itk_IMAGE_TYPE_DOUBLE )
154 MESSAGE(STATUS "=======================================")
158 #-----------------------------------------------------------------------------