2022-11-28 06:52:08 +00:00
|
|
|
cmake_minimum_required(VERSION 3.10)
|
|
|
|
|
2023-02-02 22:46:17 +00:00
|
|
|
project(firmware)
|
2022-11-28 06:52:08 +00:00
|
|
|
|
2023-02-02 22:46:17 +00:00
|
|
|
option(TEST "Enable test firmware compilation" ON)
|
|
|
|
option(SANDBOX_ASM "Enable sandbox compilation using ASM language" OFF)
|
|
|
|
option(SANDBOX_C "Enable sandbox compilation using C language" OFF)
|
|
|
|
|
|
|
|
if (SANDBOX_ASM)
|
|
|
|
add_subdirectory(sandbox/asm)
|
|
|
|
elseif (SANDBOX_C)
|
|
|
|
add_subdirectory(sandbox/c)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (TEST)
|
|
|
|
add_subdirectory(test)
|
|
|
|
endif()
|