ADD_SUBDIRECTORY(doc)
ENDIF()
ADD_SUBDIRECTORY(examples)
+ADD_SUBDIRECTORY(contrib)
#
# Define some custom targets for convenience
The following options control which components of deal.II will be
configured, build and installed:
+ DEAL_II_COMPONENT_CONTRIB
+ Enable configuration and installation of the programs under contrib
+ This adds a COMPONENT "contrib" to the build system.
+
DEAL_II_COMPONENT_COMPAT_FILES:
Enable installation of legacy files and tools for compatibility with
the old build system
Enable configuration and installation of the example steps.
This adds a COMPONENT "examples" to the build system.
- DEAL_II_COMPONENT_CONTRIB
- Enable configuration and installation of the programs under contrib
- This adds a COMPONENT "contrib" to the build system.
-
* Port the testsuite to cmake
+* Build system for parameter_gui.
+
+* Finish install targets:
+
+ - share files (documentation/manpage/etc.)
+ - same for mesh_conversion and parameter_gui
+
* Rename all DEAL_II_USE_* and HAVE_LIB* that refer to a feature to
DEAL_II_WITH_*.
#
SET(${var} TRUE)
-
#
# Check whether all required modules of trilinos are installed:
#
)
ENDIF()
-
#
# Trilinos 10.6 had quite a number of bugs we ran into, see
# for example
SET(${var} FALSE)
ENDIF()
-
#
# The same is unfortunately true for 10.8.[01]:
# https://software.sandia.gov/bugzilla/show_bug.cgi?id=5370
SET(${var} FALSE)
ENDIF()
-
#
# Trilinos has to be configured with the same MPI configuration as
# deal.II.
SET(${var} FALSE)
ENDIF()
-
#
# Some verions of Sacado_cmath.hpp does things that aren't compatible
# with the -std=c++0x flag of GCC, see deal.II FAQ.
# Configuration for the zlib library:
#
+OPTION(DEAL_II_WITH_ZLIB
+ "Build deal.II with support for zlib."
+ OFF)
+
MACRO(FEATURE_ZLIB_FIND_EXTERNAL var)
FIND_PACKAGE(ZLIB)
ADD_DEPENDENCIES(library ${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX})
ENDFOREACH()
-
IF(DEAL_II_COMPONENT_DOCUMENTATION)
-
ADD_CUSTOM_TARGET(documentation)
ADD_DEPENDENCIES(documentation doxygen)
-
ENDIF()
-
-IF(DEAL_II_COMPONENT_COMPAT_FILES)
-
+IF(DEAL_II_COMPONENT_COMPAT_FILES)
ADD_CUSTOM_TARGET(compat_files)
ADD_DEPENDENCIES(compat_files
expand_instantiations
make_dependencies
report_features
)
-
ENDIF()
-
-IF(DEAL_II_COMPONENT_PROJECT_CONFIG)
-
- ADD_CUSTOM_TARGET(project_config)
-
+IF(DEAL_II_COMPONENT_CONTRIB)
+ ADD_CUSTOM_TARGET(contrib)
+ ADD_DEPENDENCIES(contrib
+ mesh_conversion
+ )
ENDIF()
# DEAL_II_ALLOW_BUNDLED **)
# DEAL_II_SETUP_DEFAULT_COMPILER_FLAGS **)
# DEAL_II_COMPONENT_COMPAT_FILES **)
+# DEAL_II_COMPONENT_CONTRIB **)
# DEAL_II_COMPONENT_DOCUMENTATION **)
# DEAL_II_COMPONENT_EXAMPLES **)
#
ON
)
+OPTION(DEAL_II_COMPONENT_CONTRIB
+ "Enable installation of contrib packages. This adds a COMPONENT \"contrib\" to the build system."
+ ON
+ )
+
OPTION(DEAL_II_COMPONENT_EXAMPLES
"Enable configuration and installation of the example steps. This adds a COMPONENT \"examples\" to the build system."
ON
--- /dev/null
+IF(DEAL_II_COMPONENT_CONTRIB)
+ ADD_SUBDIRECTORY(mesh_conversion)
+ ADD_SUBDIRECTorY(parameter_gui)
+ENDIF()
--- /dev/null
+ADD_EXECUTABLE(mesh_conversion
+ Main.cc
+ MeshConversion.cc
+ )
+
+INSTALL(TARGETS mesh_conversion
+ RUNTIME
+ DESTINATION ${DEAL_II_EXECUTABLE_RELDIR}
+ COMPONENT contrib
+ )
+
+++ /dev/null
-SHELL = /bin/sh
-
-#MACROS
-CPP = g++ -g -ansi -pedantic -Wall
-PROG = convert_mesh
-
-#SUFFIX RULES
-.SUFFIXES: .o .cc
-.cc.o:
- $(CPP) -c $<
-
-all: $(PROG)
-
-$(PROG): Main.o MeshConversion.o
- $(CPP) -o $(PROG) Main.o MeshConversion.o
-Main.o: Main.cc MeshConversion.o
-MeshConversion.o: MeshConversion.cc
-
-clean:
- @echo "-------------------------------------------------"
- @echo "REMOVING EXECUTABLES, *.o, a.out AND FILE BACKUPS"
- -rm -f ${PROG} *.o *.*~ makefile~ *~
- @echo "-------------------------------------------------"
-
-clean-temp:
- @echo "-------------------------------------------------"
- @echo "REMOVING EXECUTABLES, *.o, a.out AND FILE BACKUPS"
- -rm -f *.o *.*~ makefile~ *~
- @echo "-------------------------------------------------"