Compiles, needs some extra tweaking
This commit is contained in:
parent
4a9cc72b6a
commit
18e8d2c8ea
5 changed files with 193 additions and 0 deletions
22
tools/keygen/CMakeLists.txt
Normal file
22
tools/keygen/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue