cmake: add include path for special source
fix the cmake build error. Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
parent
766e4a4154
commit
3610b25c91
3 changed files with 9 additions and 0 deletions
|
|
@ -65,6 +65,9 @@ if(CONFIG_BLK_RPMSG)
|
|||
endif()
|
||||
|
||||
if(CONFIG_BLK_RPMSG_SERVER)
|
||||
set_source_files_properties(
|
||||
rpmsgblk_server.c DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/..
|
||||
PROPERTIES INCLUDE_DIRECTORIES ${NUTTX_DIR}/fs/inode)
|
||||
list(APPEND SRCS rpmsgblk_server.c)
|
||||
endif()
|
||||
|
||||
|
|
|
|||
|
|
@ -30,6 +30,9 @@ if(CONFIG_SENSORS)
|
|||
endif()
|
||||
|
||||
if(CONFIG_SENSORS_GPS)
|
||||
set_source_files_properties(
|
||||
gps_uorb.c DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/..
|
||||
PROPERTIES INCLUDE_DIRECTORIES ${NUTTX_DIR}/libs/libc/gpsutils)
|
||||
list(APPEND SRCS gps_uorb.c)
|
||||
endif()
|
||||
|
||||
|
|
|
|||
|
|
@ -69,6 +69,9 @@ endif()
|
|||
# Support for timerfd
|
||||
|
||||
if(CONFIG_TIMER_FD)
|
||||
set_source_files_properties(
|
||||
fs_timerfd.c DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/..
|
||||
PROPERTIES INCLUDE_DIRECTORIES ${NUTTX_DIR}/sched)
|
||||
list(APPEND SRCS fs_timerfd.c)
|
||||
endif()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue