proj: cleaning project files
This commit is contained in:
+14
-6
@@ -1,5 +1,7 @@
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
option(BUILD_UNIT_TESTS "Build unit tests instead of main app" OFF)
|
||||
|
||||
if(TgtEnv STREQUAL "Host")
|
||||
message("Using Host-Branch")
|
||||
add_subdirectory("test/unitOnHost")
|
||||
@@ -8,10 +10,16 @@ elseif(TgtEnv STREQUAL "Target")
|
||||
add_subdirectory("core/test/unitOnTarget")
|
||||
else()
|
||||
message("Using ESP-Branch")
|
||||
set(EXTRA_COMPONENT_DIRS
|
||||
"core/components"
|
||||
"core/managed_components"
|
||||
)
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(X_WatchController_FW)
|
||||
if(DEFINED ENV{UNIT_TESTS})
|
||||
message("Using UnitTestFrame")
|
||||
add_subdirectory("test/unitOnTarget" ${CMAKE_BINARY_DIR}/main)
|
||||
else()
|
||||
set(EXTRA_COMPONENT_DIRS
|
||||
"core/components"
|
||||
"core/managed_components"
|
||||
)
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
message("Using Main App")
|
||||
project(WatchController)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user