aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/ext/mcux-sdk/components/video/camera/device/driver_camera-device-common.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/components/video/camera/device/driver_camera-device-common.cmake')
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/components/video/camera/device/driver_camera-device-common.cmake31
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/components/video/camera/device/driver_camera-device-common.cmake b/lib/chibios-contrib/ext/mcux-sdk/components/video/camera/device/driver_camera-device-common.cmake
new file mode 100644
index 000000000..9a95a3491
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/components/video/camera/device/driver_camera-device-common.cmake
@@ -0,0 +1,31 @@
1if(NOT DRIVER_CAMERA-DEVICE-COMMON_INCLUDED)
2
3 set(DRIVER_CAMERA-DEVICE-COMMON_INCLUDED true CACHE BOOL "driver_camera-device-common component is included.")
4
5 target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
6 )
7
8 target_include_directories(${MCUX_SDK_PROJECT_NAME} PRIVATE
9 ${CMAKE_CURRENT_LIST_DIR}/.
10 )
11
12 #OR Logic component
13 if(${MCUX_DEVICE} STREQUAL "MIMXRT1052")
14 include(driver_camera-common)
15 endif()
16 if(${MCUX_DEVICE} STREQUAL "MIMXRT1064")
17 include(driver_camera-common)
18 endif()
19 if(${MCUX_DEVICE} STREQUAL "MIMX8QM6_cm4_core1")
20 include(driver_camera-common)
21 endif()
22 if(${MCUX_DEVICE} STREQUAL "MIMX8QX6")
23 include(driver_camera-common)
24 endif()
25 if(${MCUX_DEVICE} STREQUAL "MIMXRT1062")
26 include(driver_camera-common)
27 endif()
28
29 include(driver_common)
30
31endif() \ No newline at end of file