This public repository is read-only and no longer maintained.
This project contains a set of general CMake configuration files, used for building the program modules of FEDEM.
This repository is consumed as a submodule by the other FEDEM repositories to facilitate a common build setup for those, and therefore does not require any setup for itself.
Here is the list of .cmake
files in the Modules folder
and what they do:
FedemConfig.cmake
contains general compiler flag setup for the builds. Currently, gcc on Linux (Ubuntu) and MS Visual Studio with Intel Fortran on Windows is supported. This file needs to be included in the top-levelCMakeLists.txt
file of the build project.Date.cmake
defines the macrodate()
for creating time stamp source files that generates the build date in the compiled binaries.GTest.cmake
defines the functionadd_cpp_test()
for defining a C++ unit test, if the googletest framework is installed. It uses the environment variableGTEST_ROOT
to determine whether the googletest package is available or not.CheckPFUnit.cmake
detects if the package pFUnit has been installed for conducting Fortran unit tests. It uses the environment variablePFUNIT
to check for valid installations.pFUnit.cmake
defines the macroenable_fortran_tests()
which adds some compiler flags needed for building the Fortran unit tests with pFUnit, and the functionadd_fortran_test()
which defines a specific Fortran unit test.CodeCoverage.cmake
contains some functions for generating code coverage reports using the tools gcov, lcov, and gcovr (on Linux only).
This project is open to feature requests, suggestions, bug reports, etc., via GitHub issues. Contributions and feedback are encouraged and always welcome. For more information about how to contribute, see our Contribution Guidelines.
If you find any bug that may be a security problem, please follow our instructions at in our security policy on how to report it. Please do not create GitHub issues for security-related doubts or problems.
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its Code of Conduct at all times.
Copyright 2023 SAP SE or an SAP affiliate company and cmake-modules contributors. Please see our LICENSE for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available via the REUSE tool.