diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-25 21:55:07 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-25 21:55:07 -0600 |
commit | 7c03983529f6502206cd40692c794b7c6605d9bf (patch) | |
tree | ecac9afa4928b6a1c040c97662371c01fde046c3 /CMakeLists.txt | |
parent | 9f4494685a29714c57cc11d62dead71f7004e061 (diff) |
Enable pico-sdk for host binaries
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e55ec51..9b5c0e0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,17 +1,21 @@ -# CMakeLists.txt - Main per-output build script for sbc-harness project +# CMakeLists.txt - Main per-platform build script for sbc-harness project # # Copyright (C) 2024 Luke T. Shumaker <lukeshu@lukeshu.com> # SPDX-Licence-Identifier: AGPL-3.0-or-later cmake_minimum_required(VERSION 3.30) -if (_UBUILD_USE_PICO_SDK) - set(PICO_SDK_PATH "${CMAKE_SOURCE_DIR}/3rd-party/pico-sdk") - include(pico_sdk_import.cmake) +if (NOT PICO_PLATFORM) + message(FATAL_ERROR "PICO_PLATFORM must be specified") endif() +set(PICO_SDK_PATH "${CMAKE_SOURCE_DIR}/3rd-party/pico-sdk") +include(pico_sdk_import.cmake) + project(sbc_harness) +pico_sdk_init() + add_compile_options(-Wall -Wextra -Werror) add_subdirectory(libcr) @@ -21,4 +25,5 @@ add_subdirectory(libusb) add_subdirectory(libmisc) add_subdirectory(lib9p) -add_subdirectory(cmd/${_UBUILD_CMD}) +add_subdirectory(cmd/sbc_harness) +add_subdirectory(cmd/srv9p) |