]> Creatis software - cpPlugins.git/blob - cmake/Options.cmake
6800c630ed176b7ff660e9002f13475a447a6949
[cpPlugins.git] / cmake / Options.cmake
1 ## ===============================
2 ## == Some configurable options ==
3 ## ===============================
4
5 SET(cpPlugins_NUMBER_OF_FILES "10" CACHE STRING "Number of compiled files.")
6 SET(cpPlugins_PROCESS_DIMS "1;2;3" CACHE STRING "Accepted processing dimensions.")
7 SET(cpPlugins_VISUAL_DIMS "2;3" CACHE STRING "Accepted visual dimensions.")
8
9 OPTION(BUILD_EXAMPLES "Build examples" OFF)
10 OPTION(BUILD_QT4_COMPONENTS "Build Qt4-based code" OFF)
11
12 SET(
13   _all_configs
14   cpPlugins_PROCESS_DIMS
15   cpPlugins_VISUAL_DIMS
16   )
17 SET(_real_configs)
18 FOREACH(_cfg ${_all_configs})
19   FOREACH(_type ${${_cfg}})
20     LIST(APPEND _real_configs "${_cfg}_${_type}")
21   ENDFOREACH(_type)
22 ENDFOREACH(_cfg)
23 SET(cpPlugins_ALL_CONFIGS "${_real_configs}" CACHE INTERNAL "All valid configurations." FORCE)
24
25 ## eof - $RCSfile$