blob: a107b754e7333baf21ac2627e0006bb45ff23016 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# lib9p/tests/test_server/CMakeLists.txt - Build script for test_server executable
#
# Copyright (C) 2024-2025 Luke T. Shumaker <lukeshu@lukeshu.com>
# SPDX-License-Identifier: AGPL-3.0-or-later
if (PICO_PLATFORM STREQUAL "host")
# Compile ######################################################################
add_library(test_server_objs OBJECT
main.c
)
target_include_directories(test_server_objs PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/config)
target_include_directories(test_server_objs PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
target_link_libraries(test_server_objs
libcr
libcr_ipc
libmisc
lib9p
lib9p_util
)
# Analyze the stack ############################################################
add_stack_analysis(test_server_stack.c test_server_objs)
# Link #########################################################################
add_executable(test_server)
target_sources(test_server PRIVATE
test_server_stack.c
"$<TARGET_OBJECTS:test_server_objs>"
)
# Embed ########################################################################
target_embed_sources(test_server_objs test_server static.h
static/README.md
static/Documentation/x
)
endif()
|