revert stm32 CMakeLists due to check ci test sucess
This commit is contained in:
parent
d7bec6c973
commit
c0b7cfc787
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -48,6 +48,12 @@ jobs:
|
|||||||
cmake -S . -B build -DPICO_SDK_PATH=$PWD/pico-sdk
|
cmake -S . -B build -DPICO_SDK_PATH=$PWD/pico-sdk
|
||||||
cmake --build build --config Debug
|
cmake --build build --config Debug
|
||||||
popd
|
popd
|
||||||
|
- name: Build stm32 examples
|
||||||
|
run: |
|
||||||
|
pushd examples/stm32
|
||||||
|
cmake -S . -B build
|
||||||
|
cmake --build build --config Debug
|
||||||
|
popd
|
||||||
Test:
|
Test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: Build # run after Build job
|
needs: Build # run after Build job
|
||||||
|
|||||||
@ -59,7 +59,15 @@ FetchContent_Declare(
|
|||||||
GIT_SHALLOW TRUE
|
GIT_SHALLOW TRUE
|
||||||
)
|
)
|
||||||
|
|
||||||
FetchContent_MakeAvailable(nanomodbus)
|
FetchContent_GetProperties(nanomodbus)
|
||||||
|
if (NOT nanomodbus_POPULATED)
|
||||||
|
FetchContent_Populate(nanomodbus)
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
add_library(nanomodbus ${nanomodbus_SOURCE_DIR}/nanomodbus.c)
|
||||||
|
target_include_directories(nanomodbus PUBLIC ${nanomodbus_SOURCE_DIR})
|
||||||
|
|
||||||
|
# FetchContent_MakeAvailable(nanomodbus)
|
||||||
|
|
||||||
set(TARGET_NAMES modbus_rtu modbus_tcp)
|
set(TARGET_NAMES modbus_rtu modbus_tcp)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user