Exporting these targets may greatly simply the process of using this library, as shown in docs/installation.md.
Also, since this library targets "modern"ness, modern CMake does not encourage the use of global functions like include_directories or global variables like CMAKE_CXX_STANDARD, so I replaced them with ones that can propagate between targets.
As for lstdc++, it should not be needed if you set CMAKE_CXX_COMPILER to clang++ instead of clang.
Also fix #6.
Exporting these targets may greatly simply the process of using this library, as shown in docs/installation.md. Also, since this library targets "modern"ness, modern CMake does not encourage the use of global functions like
include_directories
or global variables likeCMAKE_CXX_STANDARD
, so I replaced them with ones that can propagate between targets. As forlstdc++
, it should not be needed if you setCMAKE_CXX_COMPILER
to clang++ instead of clang. Also fix #6.