8 Commits

Author SHA1 Message Date
Haowen Liu
f6232a7f26
Improve CMake setup (#118)
* Support CMake 4

CMake 4 has removed compatibility with CMake < 3.5
Bumping minimum required version to 3.5 enables
CMake 4 to build this code.

* Move header into subdir

* Improve CMake setup

This commit configures and installs CMake metadata files. This also
provides the namespaced ALIAS target `cpp-subprocess::subprocess`.

* Update README with CMake instructions

* Update include paths in tests
2025-05-04 20:22:13 +05:30
Elazar Leibovich
0218c51b8c
Namespace library with github name. (#72)
While this is header-only, and users are expected
to download the header and commit it to their project, it's better to
have unique namespace for the header by default.

This has two reasons:

  1. I wish to enable installing it with conan.io, and want to reduce
     the possibility for namespace clashes. The term "subprocess" is
     pretty overloaded.
  2. Currently the README and the CMakeLists differ in their include
     path, it's better to be consistent, even though users can put it
     wherever they please in their project.

Since most users are using it as header only anyway, I don't think it'd
make much diference.

Co-authored-by: Elazar Leibovich <elazar.leibovich@nextsilicon.com>
2022-03-18 09:20:06 +05:30
Arun Muralidharan
a458bcfc4a
Update README.md 2020-04-09 17:34:16 +05:30
xoviat
9c624ce4e3 Enable basic windows support (#33)
* windows: fix implementation error
- repair configure_pipe
- allow vector initialization
- add draft destructor
- close pipes correctly

* windows: add some test compatibility

* windows: update readme

* windows: add vector args to check_output
2020-01-18 20:01:03 +05:30
Arun M
e6cb89cb6e readme minor missing content #22 2019-01-03 22:06:20 +05:30
arunmu
faa6e3af2f Updated readme 2016-03-20 10:45:39 +05:30
arunmu
79932b1f42 Updated readme 2016-03-20 10:44:41 +05:30
arunmu
9b2e9229a5 Added documentation 2016-03-19 17:40:39 +05:30