E3SM-Project / scorpio

A high-level Parallel I/O Library for structured grid applications
Other
21 stars 16 forks source link

WIP: Export scorpio targets as a cmake package #522

Closed bartgol closed 1 year ago

bartgol commented 1 year ago

I have 1.5 projects that would benefit from being able to use scorpio, but the price to pay is that we need to install the project exporting the targets (in a modern CMake way). This requires scorpio to install its targets, as well as handle include directories in a careful way (depending on whether this is a BUILD_INTERFACE or INSTALL_INTERFACE).

This PR aims at getting there. It's not yet completed. So far I only verified that it builds and installs correctly, but I still need to a) stress test w.r.t configurations, and b) verify that a downstream find_package can find scorpio correctly.