mirror of
https://github.com/espressif/openthread.git
synced 2026-09-16 14:10:09 +00:00
[test] build with cmake instead of automake (#4653)
- Use cmake to build. - Use rcp instead of transceiver simplicity. - Add virtual time options for cmake. - Enable readline support for posix apps. - Use ninja instead of make.
This commit is contained in:
@@ -28,6 +28,16 @@
|
||||
|
||||
set(OT_PLATFORM_LIB "openthread-simulation" PARENT_SCOPE)
|
||||
|
||||
option(OT_SIMULATION_VIRTUAL_TIME "enable virtual time")
|
||||
if(OT_SIMULATION_VIRTUAL_TIME)
|
||||
list(APPEND OT_PRIVATE_DEFINES "OPENTHREAD_SIMULATION_VIRTUAL_TIME=1")
|
||||
endif()
|
||||
|
||||
option(OT_SIMULATION_VIRTUAL_TIME_UART "enable virtual time for UART")
|
||||
if(OT_SIMULATION_VIRTUAL_TIME_UART)
|
||||
list(APPEND OT_PRIVATE_DEFINES "OPENTHREAD_SIMULATION_VIRTUAL_TIME_UART=1")
|
||||
endif()
|
||||
|
||||
if(NOT OT_CONFIG)
|
||||
set(OT_CONFIG "openthread-core-simulation-config.h")
|
||||
set(OT_CONFIG ${OT_CONFIG} PARENT_SCOPE)
|
||||
|
||||
Reference in New Issue
Block a user