blob: 0c3bd57b226b5a79c9df0c31feb82a5f5370c057 (
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
|
# 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_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()
|