blob: 4590bdd3bd166a212b269f77486e5e8238cd9699 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# libcr_ipc/CMakeLists.txt - IPC primitives for libcr
#
# Copyright (C) 2024-2025 Luke T. Shumaker <lukeshu@lukeshu.com>
# SPDX-License-Identifier: AGPL-3.0-or-later
add_library(libcr_ipc INTERFACE)
target_include_directories(libcr_ipc SYSTEM INTERFACE ${CMAKE_CURRENT_LIST_DIR}/include)
target_sources(libcr_ipc INTERFACE
chan.c
select.c
)
target_link_libraries(libcr_ipc INTERFACE
libcr
)
set(ipc_tests
chan
#select
#mutex
#owned_mutex
rpc
sema
)
if (ENABLE_TESTS)
foreach(test IN LISTS ipc_tests)
add_lib_test(libcr_ipc "test_${test}")
target_include_directories("test_${test}" PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/tests)
endforeach()
endif()
|