summaryrefslogtreecommitdiff
path: root/lib9p/tests/test_server/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'lib9p/tests/test_server/CMakeLists.txt')
-rw-r--r--lib9p/tests/test_server/CMakeLists.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/lib9p/tests/test_server/CMakeLists.txt b/lib9p/tests/test_server/CMakeLists.txt
new file mode 100644
index 0000000..76b6ff3
--- /dev/null
+++ b/lib9p/tests/test_server/CMakeLists.txt
@@ -0,0 +1,29 @@
+# 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")
+
+add_executable(test_server
+ main.c
+ fs_flush.c
+ fs_shutdown.c
+ fs_whoami.c
+)
+target_include_directories(test_server PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/config)
+target_include_directories(test_server PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) # for static.h
+target_link_libraries(test_server
+ libcr
+ libcr_ipc
+ libmisc
+ lib9p_util
+ libhw_cr
+)
+
+target_embed_sources(test_server test_server static.h
+ static/README.md
+ static/Documentation/x.txt
+)
+
+endif()