File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ # Seems this must be passed as:
2+ # USER_C_MODULE=/home/user/sources/PiggyOS/c_mpos/micropython.cmake
3+ # ...to make.py when building for esp32 to ensure it gets compiled.
4+
5+ add_library (usermod_c_mpos INTERFACE )
6+
7+ set (MPOS_C_INCLUDES)
8+
9+ set (MPOS_C_SOURCES
10+ ${CMAKE_CURRENT_LIST_DIR} /src/hello_world.c
11+ ${CMAKE_CURRENT_LIST_DIR} /src/quirc_decode.c
12+ ${CMAKE_CURRENT_LIST_DIR} /quirc/lib/identify.c
13+ ${CMAKE_CURRENT_LIST_DIR} /quirc/lib/version_db.c
14+ ${CMAKE_CURRENT_LIST_DIR} /quirc/lib/decode.c
15+ ${CMAKE_CURRENT_LIST_DIR} /quirc/lib/quirc.c
16+ )
17+
18+ # Add our source files to the lib
19+ target_sources (usermod_c_mpos INTERFACE ${MPOS_C_SOURCES} )
20+
21+ # Add include directories.
22+ target_include_directories (usermod_c_mpos INTERFACE ${MPOS_C_INCLUDES} )
23+
24+ # Link our INTERFACE library to the usermod target.
25+ target_link_libraries (usermod INTERFACE usermod_c_mpos )
26+
You can’t perform that action at this time.
0 commit comments