Skip to content

Commit

Permalink
added micropython.cmake for including tlc5947 in CMake builds
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzuger committed Sep 20, 2022
1 parent 8b15bce commit 06579b6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions micropython.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
add_library(usermod_tlc5947 INTERFACE)

target_sources(usermod_tlc5947 INTERFACE
${CMAKE_CURRENT_LIST_DIR}/tlc5947/tlc5947.c
${CMAKE_CURRENT_LIST_DIR}/tlc5947/color.c
)

target_include_directories(usermod_tlc5947 INTERFACE
${CMAKE_CURRENT_LIST_DIR}/tlc5947
)

target_link_libraries(usermod INTERFACE usermod_tlc5947)

0 comments on commit 06579b6

Please sign in to comment.