summaryrefslogtreecommitdiffstats
path: root/ipc_unit_test/CMakeLists.txt
blob: 944ad0b3f97e31c16fa299c62f8ec50981c19baf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright (c) 2021, Nippon Seiki Co., Ltd.
# SPDX-License-Identifier: Apache-2.0

# Define project Targets
set(TEST_CLIENT_NAME ipc_unit_test_client)
set(TEST_SERVER_NAME ipc_unit_test_server)

add_executable(${TEST_CLIENT_NAME} ipc_unit_test_client.c ipc_unit_test_common.c)
target_link_libraries(${TEST_CLIENT_NAME} ${TARGET_NAME})
target_include_directories(${TEST_CLIENT_NAME} PRIVATE
    ./
    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>
)

add_executable(${TEST_SERVER_NAME} ipc_unit_test_server.c ipc_unit_test_common.c)
target_link_libraries(${TEST_SERVER_NAME} ${TARGET_NAME})
target_include_directories(${TEST_SERVER_NAME} PRIVATE
    ./
    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>
)