argtable / argtable3

A single-file, ANSI C, command-line parsing library that parses GNU-style command-line options.
http://www.argtable.org
Other
372 stars 65 forks source link

Export include path (argtable3.h) via CMake module #85

Closed schdro closed 1 year ago

schdro commented 1 year ago

This way the exported header file can be used cleanly by searching the exported config package, more so when nonstandard paths are used for installing header.

Also use expression template to differentiate between potentially different paths during time of compilation and module use.

Resembles doc "cmake/help/latest/guide/importing-exporting".

Fixes #84

tomghuang commented 1 year ago

@schdro , thanks a lot for catching this issue and providing the patch.