2026-02-12 10:53:31 -08:00
|
|
|
add_executable(rns-provision main.cpp)
|
|
|
|
|
|
|
|
|
|
# If microReticulum exports an include directory / target, this may be unnecessary.
|
|
|
|
|
# Keep this here as a pragmatic fallback:
|
|
|
|
|
target_include_directories(rns-provision PRIVATE
|
|
|
|
|
${CMAKE_SOURCE_DIR}/external/microReticulum/src
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# ArduinoJson is pulled by microReticulum headers; add it to this tool's include path.
|
|
|
|
|
target_include_directories(rns-provision PRIVATE
|
|
|
|
|
${CMAKE_SOURCE_DIR}/external/microReticulum/src
|
|
|
|
|
|
|
|
|
|
# ArduinoJson headers:
|
|
|
|
|
# - ArduinoJson.h lives at the repo root
|
|
|
|
|
# - ArduinoJson/... lives under src/
|
|
|
|
|
${CMAKE_BINARY_DIR}/_deps/arduinojson-src
|
|
|
|
|
${CMAKE_BINARY_DIR}/_deps/arduinojson-src/src
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# Link against the microReticulum library target.
|
|
|
|
|
# If this target name is wrong in your submodule, change it here.
|
|
|
|
|
target_link_libraries(rns-provision PRIVATE ReticulumStatic)
|
2026-02-12 11:17:48 -08:00
|
|
|
|
|
|
|
|
install(TARGETS rns-provision RUNTIME DESTINATION bin)
|