martinmoene / optional-lite

optional lite - A C++17-like optional, a nullable object for C++98, C++11 and later in a single-file header-only library
Boost Software License 1.0
403 stars 45 forks source link

Feature Request: Support cmake `find_package` #36

Closed apmccartney closed 5 years ago

apmccartney commented 5 years ago

Firstly, thank you for sharing this library. It's wonderful that you've provided folks like me (who are stuck on C++14 for a while more) access to the these C++17 library facilities.

At the moment, while installation is supported, installation does not provide the requisite hooks to consume the library by way of CMake's find_package intrinsic.

I would be happy to provide this functionality if pull requests are welcome.

martinmoene commented 5 years ago

Thanks @apmccartney, I'd welcome that contribution.

martinmoene commented 5 years ago

Added in dd35031495a487bc0cdcede7e2ccf2b49729ceaa