26 lines
786 B
CMake
26 lines
786 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
|
|
if(TgtEnv STREQUAL "Host")
|
|
message("Using Host-Branch")
|
|
enable_testing()
|
|
add_subdirectory("test/unitOnHost")
|
|
elseif(TgtEnv STREQUAL "Target")
|
|
# add_subdirectory("test/unitOnTarget")
|
|
add_subdirectory("core/test/unitOnTarget")
|
|
else()
|
|
message("Using ESP-Branch")
|
|
if(DEFINED ENV{UNIT_TESTS})
|
|
message("Using UnitTestFrame")
|
|
add_subdirectory("test/unitOnTarget" ${CMAKE_BINARY_DIR}/main)
|
|
else()
|
|
set(EXTRA_COMPONENT_DIRS
|
|
"core/components"
|
|
"core/components_extern"
|
|
"core/managed_components"
|
|
)
|
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
|
message("Using Main App")
|
|
project(WatchController)
|
|
endif()
|
|
endif()
|