mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 17:47:21 +02:00
Update CMakeLists.txt
This commit is contained in:
@@ -4,15 +4,15 @@ file(GLOB_RECURSE ALL_SRCS
|
|||||||
"${CMAKE_CURRENT_SOURCE_DIR}/*.S"
|
"${CMAKE_CURRENT_SOURCE_DIR}/*.S"
|
||||||
)
|
)
|
||||||
|
|
||||||
if(DEFINED RMT_TEST AND RMT_TEST EQUAL 1)
|
if(DEFINED RMT_TEST AND RMT_TEST EQUAL 1)
|
||||||
message(STATUS "Building for testing RMT/Link Layer Functionality with main_rmt_test.cpp")
|
message(STATUS "Building for testing RMT/Link Layer Functionality with main_rmt_test.cpp")
|
||||||
list(REMOVE_ITEM ALL_SRCS
|
list(REMOVE_ITEM ALL_SRCS
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/main.cpp"
|
"${CMAKE_CURRENT_SOURCE_DIR}/main.cpp"
|
||||||
)
|
)
|
||||||
idf_build_set_property(COMPILE_DEFINITIONS RMT_TEST APPEND)
|
idf_build_set_property(COMPILE_DEFINITIONS RMT_TEST APPEND)
|
||||||
else()
|
else()
|
||||||
list(REMOVE_ITEM ALL_SRCS
|
list(REMOVE_ITEM ALL_SRCS
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/main.cpp"
|
"${CMAKE_CURRENT_SOURCE_DIR}/main_rmt_test.cpp"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@@ -34,4 +34,3 @@ if(DEFINED RECEIVE_ONLY AND RECEIVE_ONLY)
|
|||||||
message(STATUS "Building for receive only")
|
message(STATUS "Building for receive only")
|
||||||
idf_build_set_property(COMPILE_DEFINITIONS RECEIVE_ONLY=${RECEIVE_ONLY} APPEND)
|
idf_build_set_property(COMPILE_DEFINITIONS RECEIVE_ONLY=${RECEIVE_ONLY} APPEND)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user