# $ cmake -DCMAKE_CXX_FLAGS="-Wno-sign-compare" <...>
#
#
-# Build optoins: TODO
+# Build options:
#
-# - BUILD_SHARED_LIBS and DEAL_II_SETUP_DEFAULT_COMPILER_FLAGS
+# - BUILD_SHARED_LIBS and
+# - DEAL_II_SETUP_DEFAULT_COMPILER_FLAGS
#
-# Installation: TODO
+# Installation:
+#
+# - DEAL_II_INSTALL_EXAMPLES
+# - DEAL_II_INSTALL_COMPAT_FILES
+# - DEAL_II_INSTALL_PROJECT_CONFIG
#
# - Explain Components and Options...
# - Explain how to build and install only a specific component:
ON)
+
+
###########################################################################
# #
# Configuration: #
ADD_SUBDIRECTORY(doc)
ADD_SUBDIRECTORY(examples)
+#
+# Define some convencience custom targets for easy use:
+#
+INCLUDE(setup_custom_targets)
DEPENDS expand_instantiations
${CMAKE_CURRENT_SOURCE_DIR}/${inst_in_file}
COMMAND expand_instantiations
- ARGS ${CMAKE_BINARY_DIR}/contrib/config/template-arguments
+ ARGS ${CMAKE_BINARY_DIR}/config/template-arguments
< ${CMAKE_CURRENT_SOURCE_DIR}/${inst_in_file}
> ${CMAKE_CURRENT_BINARY_DIR}/${inst_file}
)
--- /dev/null
+
+#
+# Setup some convenience custom targets for the build system:
+#
+
+#
+# Custom targets for building all targets necessary to install a specific
+# component. (Too bad, we have to do this by hand. There is no cmake
+# internal way to do this, yet...)
+#
+
+ADD_CUSTOM_TARGET(library)
+ADD_DEPENDENCIES(library deal_II)
+
+
+IF(DEAL_II_WITH_DOXYGEN)
+
+ ADD_CUSTOM_TARGET(documentation)
+ ADD_DEPENDENCIES(documentation doxygen)
+
+ENDIF()
+
+
+IF(DEAL_II_INSTALL_COMPAT_FILES)
+
+ ADD_CUSTOM_TARGET(compat_files)
+
+ENDIF()
+
+
+IF(DEAL_II_INSTALL_PROJECT_CONFIG)
+
+ ADD_CUSTOM_TARGET(project_config)
+
+ENDIF()
+