summaryrefslogtreecommitdiff
path: root/cmd/srv9p/CMakeLists.txt
blob: b74788262c5f8ba4aabeca8f41bde7279997944b (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
# 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")

add_executable(srv9p
	main.c
	static9p.c
)
target_embed_sources(srv9p static.h
	static/README.md
	static/Documentation/x
)
target_include_directories(srv9p PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
target_include_directories(srv9p PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/config)
target_link_libraries(srv9p
	libcr
	libcr_ipc
	libmisc
	lib9p
)

endif()