19
pio/ir_nec/nec_receive_library/CMakeLists.txt
Normal file
19
pio/ir_nec/nec_receive_library/CMakeLists.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
# build a normal library
|
||||
#
|
||||
add_library(nec_receive_library nec_receive.c)
|
||||
|
||||
# invoke pio_asm to assemble the state machine program
|
||||
#
|
||||
pico_generate_pio_header(nec_receive_library ${CMAKE_CURRENT_LIST_DIR}/nec_receive.pio)
|
||||
|
||||
target_link_libraries(nec_receive_library PRIVATE
|
||||
pico_stdlib
|
||||
hardware_pio
|
||||
)
|
||||
|
||||
# add the `binary` directory so that the generated headers are included in the project
|
||||
#
|
||||
target_include_directories (nec_receive_library PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
)
|
||||
Reference in New Issue
Block a user