Skip to content

Commit cbc9e82

Browse files
authored
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
1 parent 399616b commit cbc9e82

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@ if(BUILD_TESTING)
99
add_subdirectory(test)
1010
endif()
1111

12+
add_library(subprocess INTERFACE)
13+
target_include_directories(subprocess INTERFACE .)
14+
1215
install(FILES subprocess.hpp DESTINATION include/cpp-subprocess/)

0 commit comments

Comments
 (0)