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

Add an optional install step into the cmake #30

Closed medithe closed 6 years ago

medithe commented 6 years ago

This is required, in particular, if the library is used in build-systems like yocto.

martinmoene commented 6 years ago

Following other nonstd lite libraries I did :

install( DIRECTORY ${CMAKE_SOURCE_DIR}/include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} )
medithe commented 6 years ago

Thanks!

martinmoene commented 6 years ago

@medithe Thanks to you for pointing at CMake install: it made me update several other libraries to follow the same pattern.