If your project uses CMake, you could
* add the structopt repository as a git submodule to your project
* add something like `add_subdirectory(structopt)` to your top-level CMake script
* add structopt to your target_link_libraries
and you're good to go.