]> Creatis software - cpPlugins.git/blob - cmake/Options.cmake
edd812663cbc30231a902277c3d2a46a5c879088
[cpPlugins.git] / cmake / Options.cmake
1 ## ===============================
2 ## == Some configurable options ==
3 ## ===============================
4
5 SET(cpPlugins_CONFIG_NUMBER_OF_FILES "10" CACHE STRING "Number of compiled files.")
6 SET(cpPlugins_CONFIG_INTEGER_TYPES "char;short;int;long" CACHE STRING "Accepted integer types.")
7 SET(cpPlugins_CONFIG_REAL_TYPES "float;double" CACHE STRING "Accepted real types.")
8 SET(cpPlugins_CONFIG_PROCESS_DIMENSIONS "1;2;3;4" CACHE STRING "Accepted processing dimensions.")
9 SET(cpPlugins_CONFIG_VISUAL_DIMENSIONS "2;3" CACHE STRING "Accepted visual dimensions.")
10 SET(cpPlugins_CONFIG_COLOR_PIXELS "RGBPixel;RGBAPixel" CACHE STRING "Accepted color pixels.")
11 SET(cpPlugins_CONFIG_VECTORS "CovariantVector;Point;SymmetricSecondRankTensor;Vector" CACHE STRING "Accepted vectors.")
12 SET(cpPlugins_CONFIG_DIFFUSIONTENSORS "DiffusionTensor3D" CACHE STRING "Accepted diffusion tensors.")
13 SET(cpPlugins_CONFIG_MATRICES "Matrix" CACHE STRING "Accepted matrices.")
14
15 SET(
16   _all_configs
17   cpPlugins_CONFIG_INTEGER_TYPES
18   cpPlugins_CONFIG_REAL_TYPES
19   cpPlugins_CONFIG_PROCESS_DIMENSIONS
20   cpPlugins_CONFIG_VISUAL_DIMENSIONS
21   cpPlugins_CONFIG_COLOR_PIXELS
22   cpPlugins_CONFIG_VECTORS
23   cpPlugins_CONFIG_DIFFUSIONTENSORS
24   cpPlugins_CONFIG_MATRICES
25   )
26 SET(_real_configs)
27 FOREACH(_cfg ${_all_configs})
28   FOREACH(_type ${${_cfg}})
29     LIST(APPEND _real_configs "${_cfg}_${_type}")
30   ENDFOREACH(_type)
31 ENDFOREACH(_cfg)
32
33 SET(cpPlugins_ALL_CONFIGS "${_real_configs}" CACHE INTERNAL "All valid configurations." FORCE)
34
35 ## eof - $RCSfile$