@@ -1,7 +1,7 @@
|
||||
option(VAMP_PICO_FIRMWARE_PROJECT "Configure this CMake invocation as the Pi Pico 2 W firmware project" OFF)
|
||||
option(VAMP_BUILD_PICO_FIRMWARE "Build the Pi Pico 2 W UF2 firmware artifact" OFF)
|
||||
option(VAMP_BUILD_ZERO_IMAGE "Build the Pi Zero 2 W Docker image archive artifact" OFF)
|
||||
option(BUILD_TESTING "Compatibility option accepted by Modulus; Product Vamp does not currently define tests" OFF)
|
||||
option(BUILD_TESTING "Build Product Vamp tests" OFF)
|
||||
|
||||
set(VAMP_PICO_SDK_VERSION "2.3.0" CACHE STRING "Raspberry Pi Pico SDK git tag used when fetching the SDK")
|
||||
set(VAMP_PICO_WIFI_SSID "Vamp Control" CACHE STRING "Default Pico Wi-Fi SSID")
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
include(GNUInstallDirs)
|
||||
include(CTest)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 23)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
@@ -82,6 +83,10 @@ add_executable(vamp-zero src/vamp_zero/main.cpp)
|
||||
target_compile_features(vamp-zero PRIVATE cxx_std_23)
|
||||
target_link_libraries(vamp-zero PRIVATE vamp-zero-core)
|
||||
|
||||
if(BUILD_TESTING)
|
||||
add_subdirectory(tests)
|
||||
endif()
|
||||
|
||||
set(VAMP_BUNDLE_DIR ${CMAKE_CURRENT_BINARY_DIR}/bundle)
|
||||
set(VAMP_MANIFEST ${VAMP_BUNDLE_DIR}/manifest.json)
|
||||
configure_file(package/manifest.json.in ${VAMP_MANIFEST} @ONLY)
|
||||
|
||||
Reference in New Issue
Block a user