"Enable configuration, build and installation of the documentation. This adds a COMPONENT \"documentation\" to the build system."
OFF
)
+ LIST(APPEND DEAL_II_COMPONENTS DOCUMENTATION)
+
ENDIF()
OPTION(DEAL_II_COMPONENT_EXAMPLES
"Enable configuration and installation of the example steps. This adds a COMPONENT \"examples\" to the build system."
ON
)
+LIST(APPEND DEAL_II_COMPONENTS EXAMPLES)
+
+OPTION(DEAL_II_COMPONENT_PACKAGE
+ "Generates additional targets for packaging deal.II"
+ OFF
+ )
+LIST(APPEND DEAL_II_COMPONENTS PACKAGE)
OPTION(DEAL_II_COMPONENT_PARAMETER_GUI
"Build and install the parameter_gui. This adds a COMPONENT \"parameter_gui\" to the build system."
OFF
)
+LIST(APPEND DEAL_II_COMPONENTS PARAMETER_GUI)
OPTION(DEAL_II_ALLOW_AUTODETECTION
"Allow to automatically set up features by setting all undefined DEAL_II_WITH_* variables to ON or OFF"
OFF
)
-OPTION(DEAL_II_COMPONENT_PACKAGE
- "Generates additional targets for packaging deal.II"
- OFF
- )
-
########################################################################
# #
"#\n# Component configuration:\n"
)
-GET_CMAKE_PROPERTY(_variables VARIABLES)
-FOREACH(_var ${_variables})
- IF(_var MATCHES "DEAL_II_COMPONENT")
- LIST(APPEND _components "${_var}")
- ENDIF()
-ENDFOREACH()
-FOREACH(_var ${_components})
- IF(_var MATCHES "DEAL_II_COMPONENT")
- IF(${${_var}})
- _both("# ${_var}\n")
- STRING(REPLACE "DEAL_II_COMPONENT_" "" _component ${_var})
- LIST(APPEND _components ${_component})
- ELSE()
- _both("# ( ${_var} = ${${_var}} )\n")
- ENDIF()
+FOREACH(_component ${DEAL_II_COMPONENTS})
+ SET(_var DEAL_II_COMPONENT_${_component})
+ IF(${${_var}})
+ _both("# ${_var}\n")
+ ELSE()
+ _both("# ( ${_var} = ${${_var}} )\n")
ENDIF()
ENDFOREACH()