22 lines
753 B
CMake
22 lines
753 B
CMake
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
|
|
project(NONE)
|
|
|
|
target_sources(app PRIVATE src/zephyr_start.c src/zephyr_getchar.c)
|
|
|
|
add_library(libmicropython STATIC IMPORTED)
|
|
set_target_properties(libmicropython PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/libmicropython.a)
|
|
target_link_libraries(app libmicropython)
|
|
|
|
zephyr_get_include_directories_as_string(includes)
|
|
zephyr_get_system_include_directories_as_string(system_includes)
|
|
zephyr_get_compile_definitions_as_string(definitions)
|
|
zephyr_get_compile_options_as_string(options)
|
|
|
|
add_custom_target(
|
|
outputexports
|
|
COMMAND echo CC="${CMAKE_C_COMPILER}"
|
|
COMMAND echo Z_CFLAGS=${system_includes}${includes}${definitions}${options}
|
|
VERBATIM
|
|
USES_TERMINAL
|
|
)
|