Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

SAP-archive/cmake-modules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This public repository is read-only and no longer maintained.

REUSE status

FEDEM cmake modules

About this project

This project contains a set of general CMake configuration files, used for building the program modules of FEDEM.

Requirements and Setup

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.

The cmake files

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-level CMakeLists.txt file of the build project.
  • Date.cmake defines the macro date() for creating time stamp source files that generates the build date in the compiled binaries.
  • GTest.cmake defines the function add_cpp_test() for defining a C++ unit test, if the googletest framework is installed. It uses the environment variable GTEST_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 variable PFUNIT to check for valid installations.
  • pFUnit.cmake defines the macro enable_fortran_tests() which adds some compiler flags needed for building the Fortran unit tests with pFUnit, and the function add_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).

Contributing

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.

Security / Disclosure

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.

Code of Conduct

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.

Licensing

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.

Releases

No releases published

Packages

No packages published

Languages