Skip to content

Commit f5112a6

Browse files
Move power_status "library" to it's own folder (#668)
1 parent c0f053c commit f5112a6

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

adc/read_vsys/CMakeLists.txt

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
1-
add_library(power_status_adc INTERFACE)
2-
target_sources(power_status_adc INTERFACE
3-
${CMAKE_CURRENT_LIST_DIR}/power_status.c
4-
)
5-
target_include_directories(power_status_adc INTERFACE
6-
${CMAKE_CURRENT_LIST_DIR}
7-
)
8-
target_link_libraries(power_status_adc INTERFACE
9-
hardware_adc
10-
hardware_gpio
11-
)
1+
add_subdirectory(power_status)
122

133
add_executable(read_vsys
144
read_vsys.c
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
add_library(power_status_adc INTERFACE)
2+
target_sources(power_status_adc INTERFACE
3+
${CMAKE_CURRENT_LIST_DIR}/power_status.c
4+
)
5+
target_include_directories(power_status_adc INTERFACE
6+
${CMAKE_CURRENT_LIST_DIR}
7+
)
8+
target_link_libraries(power_status_adc INTERFACE
9+
hardware_adc
10+
hardware_gpio
11+
)

0 commit comments

Comments
 (0)