diff options
| author | hathach <[email protected]> | 2021-01-23 00:32:14 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-01-23 00:32:14 +0700 |
| commit | a780a8762b8f8255cbb0fd775610f0cddd32ff9b (patch) | |
| tree | b5095787517a3acefcaf0f03c9dc42949d8b0ca6 /examples/device | |
| parent | b8847de8025c0be602c59f0fe28397b6e18a1651 (diff) | |
rp2040 better support multiple boards
Diffstat (limited to 'examples/device')
| -rw-r--r-- | examples/device/board_test/CMakeLists.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/device/board_test/CMakeLists.txt b/examples/device/board_test/CMakeLists.txt index 62759c49c..f02f83f7b 100644 --- a/examples/device/board_test/CMakeLists.txt +++ b/examples/device/board_test/CMakeLists.txt @@ -20,15 +20,16 @@ pico_sdk_init() add_executable(${PROJECT}) -target_sources(${PROJECT} PRIVATE +target_sources(${PROJECT} PUBLIC src/main.c - "${TOP}/hw/bsp/rp2040/boards/raspberry_pi_pico/board_raspberry_pi_pico.c" + "${TOP}/hw/bsp/${FAMILY}/family.c" ) -target_include_directories(${PROJECT} PRIVATE +target_include_directories(${PROJECT} PUBLIC "src/" "${TOP}/hw" "${TOP}/src" + "${TOP}/hw/bsp/${FAMILY}/boards/${BOARD}" ) target_compile_definitions(${PROJECT} PUBLIC |
