mirror of
https://github.com/arun11299/cpp-subprocess.git
synced 2025-08-05 04:46:21 -04:00

* revert channges to quote argument * ci: add cmake draft * ci: enable suprocess tests * cleanup some warnings * ci: disable nonworking windows tests * ci: set timeout * ci: disable nonworking tests on windows * ci: remove travis --------- Co-authored-by: xoviat <xoviat@users.noreply.github.com>
19 lines
591 B
CMake
19 lines
591 B
CMake
cmake_minimum_required(VERSION 3.1)
|
|
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)
|
|
|
|
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_TESTS)
|
|
include(CTest)
|
|
add_subdirectory(test)
|
|
endif()
|