Skip to content

create C++ library and CMake export#186

Merged
KrisThielemans merged 6 commits intomainfrom
cmake-export
Mar 26, 2026
Merged

create C++ library and CMake export#186
KrisThielemans merged 6 commits intomainfrom
cmake-export

Conversation

@KrisThielemans
Copy link
Copy Markdown
Contributor

This is the same as @NikEfth #181 but with cleaned-up file and history (and project version update).

@NikEfth, what do you think? Ok to merge?

NikEfth and others added 6 commits March 25, 2026 10:28
Makes PETSIRD usable as a standalone, installed dependency.
Specifically, it:
* Installs PETSIRD files
• Adds a proper PETSIRDConfig.cmake export
• Enables downstream projects (e.g. STIR, STIR2PETSIRD) to use find_package(PETSIRD)
xtensor-blas currently does not depend on xtensor (!), so
we have to include it ourselves. Otherwise, the `xtensor` target
is undefined, leading to linker errors downstream ("missing -lxtensor")
- create a STATIC library petsird from the OBJECT library
  petsird_generated and depend on that
- remove xtensor work-around
- try to more consistent in project, namespace and filenames to use
  PETSIRD
- a bit more documentation in a few files
@NikEfth
Copy link
Copy Markdown
Contributor

NikEfth commented Mar 25, 2026

Seems OK. But if you want to me to test it, it will take a few days

@KrisThielemans KrisThielemans added the enhancement New feature or request label Mar 25, 2026
@KrisThielemans KrisThielemans merged commit af488ef into main Mar 26, 2026
2 checks passed
@KrisThielemans KrisThielemans deleted the cmake-export branch March 26, 2026 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants