blob: 4b6ec32b3d06d9750266cbb8d57a101ab6c6ddc0 (
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
|
# cmd/srv9p/CMakeLists.txt - Build script for srv9p test/dev executable
#
# Copyright (C) 2024 Luke T. Shumaker <lukeshu@lukeshu.com>
# SPDX-License-Identifier: AGPL-3.0-or-later
if (PICO_PLATFORM STREQUAL "host")
# Compile ######################################################################
add_library(srv9p_objs OBJECT
main.c
static9p.c
)
target_include_directories(srv9p_objs PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/config)
target_include_directories(srv9p_objs PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
target_link_libraries(srv9p_objs
libcr
libcr_ipc
libmisc
lib9p
)
# Analyze the stack ############################################################
add_stack_analysis(srv9p_stack.c srv9p_objs)
# Link #########################################################################
add_executable(srv9p)
target_sources(srv9p PRIVATE
srv9p_stack.c
"$<TARGET_OBJECTS:srv9p_objs>"
)
# Embed ########################################################################
target_embed_sources(srv9p_objs srv9p static.h
static/README.md
static/Documentation/x
)
endif()
|