Skip to content

Commit 184efed

Browse files
committed
spawn
1 parent 1b31c8d commit 184efed

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

include/spawn/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
cmake_minimum_required(VERSION 3.21)
2+
project(libut LANGUAGES CXX)
3+
4+
add_library(libut_target_spawn INTERFACE)
5+
target_sources(libut_target_spawn PUBLIC
6+
FILE_SET HEADERS
7+
BASE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/include
8+
FILES
9+
${CMAKE_CURRENT_SOURCE_DIR}/include/ut/spawn/spawn.hpp
10+
)
11+
message(STATUS "libut: adding UT::spawn")
12+
add_library(UT::spawn ALIAS libut_target_spawn)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#ifndef UT_SPAWN_HPP
2+
#define UT_SPAWN_HPP
3+
4+
#if __cplusplus < 202'002L
5+
# error this file has to be compiled with at least C++20
6+
#endif
7+
8+
9+
#endif // UT_SPAWN_HPP
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
simple process spawning (currently Linux only)

0 commit comments

Comments
 (0)