-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# This file is to be given as "make USER_C_MODULES=..." when building Micropython port | ||
|
||
add_library(usermod_esp_io_expander INTERFACE) | ||
|
||
# Set the source directorya and find all source files. | ||
set(SRC_DIR ${CMAKE_CURRENT_LIST_DIR}/src) | ||
file(GLOB_RECURSE SRCS ${SRC_DIR}/*.c) | ||
|
||
# Add our source files to the library. | ||
target_sources(usermod_esp_io_expander INTERFACE ${SRCS}) | ||
|
||
# Add the current directory as an include directory. | ||
target_include_directories(usermod_esp_io_expander INTERFACE ${SRC_DIR}) | ||
|
||
# Link our INTERFACE library to the usermod target. | ||
target_link_libraries(usermod INTERFACE usermod_esp_io_expander) |