libCEED
libCEED copied to clipboard
prototype CMake support
following discussion https://github.com/CEED/libCEED/discussions/1524, this PR aims to investigate feasibility of adding CMake support to libCEED.
At the time of writing, it seems to successfully compile the libCEED static library and tests, although I'm seeing some linker errors on the tests (undefined symbols from unsupported backends), but this is probably because I'm in an unfamiliar code base and don't understand how the backends are supposed to be enabled/disabled.
It also shows an example of generating files (e.g. ceed.pc) when configuring CMake.
Also included is a small example CMake project showing how a downstream user might benefit from CMake integration:
Adding a few lines of code to the CMakeLists.txt makes it possible to download, configure, build and link against libCEED.