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

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
16 lines
311 B
CMake
16 lines
311 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()
|
|
|
|
add_library(subprocess INTERFACE)
|
|
target_include_directories(subprocess INTERFACE .)
|
|
|
|
install(FILES subprocess.hpp DESTINATION include/cpp-subprocess/)
|