cmake:fix drivers build block during cmake reforming

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
xuxin19
2023-08-16 12:18:58 +08:00
committed by Xiang Xiao
parent 6364fc6e69
commit f2f0d7fbad
15 changed files with 181 additions and 3 deletions
+7 -1
View File
@@ -17,4 +17,10 @@
# the License.
#
# ##############################################################################
nuttx_add_subdirectory()
if(CONFIG_MOTOR_FOC)
nuttx_add_subdirectory()
endif()
if(CONFIG_MOTOR_UPPER)
target_sources(drivers PRIVATE motor.c)
endif()