cpp-subprocess/CMakeLists.txt
damageboy cbc9e82158
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
2022-06-11 11:02:37 +05:30

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/)