mirror of
https://github.com/arun11299/cpp-subprocess.git
synced 2025-08-05 12:56:23 -04:00

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>
13 lines
225 B
CMake
13 lines
225 B
CMake
cmake_minimum_required(VERSION 3.1)
|
|
|
|
project(subprocess CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
include(CTest)
|
|
if(BUILD_TESTING)
|
|
add_subdirectory(test)
|
|
endif()
|
|
|
|
install(FILES subprocess.hpp DESTINATION include/cpp-subprocess/)
|