mirror of
https://github.com/arun11299/cpp-subprocess.git
synced 2025-08-04 12:26:19 -04:00
Install guard (#93)
This commit is contained in:
parent
40bcc2daa9
commit
40cd59c097
@ -4,13 +4,17 @@ project(subprocess VERSION 0.0.1 LANGUAGES CXX)
|
||||
set(CMAKE_CXX_STANDARD 11 CACHE STRING "C++ standard to use")
|
||||
option(EXPORT_COMPILE_COMMANDS "create clang compile database" ON)
|
||||
option(SUBPROCESS_TESTS "enable subprocess tests" OFF)
|
||||
option(SUBPROCESS_INSTALL "enable subprocess install" OFF)
|
||||
|
||||
find_package(Threads REQUIRED)
|
||||
|
||||
add_library(subprocess INTERFACE)
|
||||
target_link_libraries(subprocess INTERFACE Threads::Threads)
|
||||
target_include_directories(subprocess INTERFACE . )
|
||||
install(FILES subprocess.hpp DESTINATION include/cpp-subprocess/)
|
||||
|
||||
if(SUBPROCESS_INSTALL)
|
||||
install(FILES subprocess.hpp DESTINATION include/cpp-subprocess/)
|
||||
endif()
|
||||
|
||||
if(SUBPROCESS_TESTS)
|
||||
include(CTest)
|
||||
|
Loading…
x
Reference in New Issue
Block a user