Expose headers in cmake project (#77)

Expose through CMake directives, the name of the project so that package managers such as
CPM (https://github.com/cpm-cmake/CPM.cmake) could consume this library cleanly
This commit is contained in:
damageboy 2022-06-11 08:32:37 +03:00 committed by GitHub
parent 399616b408
commit cbc9e82158
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,4 +9,7 @@ if(BUILD_TESTING)
add_subdirectory(test)
endif()
add_library(subprocess INTERFACE)
target_include_directories(subprocess INTERFACE .)
install(FILES subprocess.hpp DESTINATION include/cpp-subprocess/)