-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathCMakeLists.txt
68 lines (54 loc) · 3.25 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# SPDX-License-Identifier: Apache-2.0
# This build is dependent on:
# - ZEPHYR_BASE
# Please add the path locations in your $ENV settings
cmake_minimum_required(VERSION 3.20.0)
set(NRF_SUPPORTED_BOARDS nrf5340dk_nrf5340_cpuapp)
list(APPEND ZEPHYR_EXTRA_MODULES ${CMAKE_CURRENT_SOURCE_DIR}/ltr303)
list(APPEND ZEPHYR_EXTRA_MODULES ${CMAKE_CURRENT_SOURCE_DIR}/icg20330)
list(APPEND ZEPHYR_EXTRA_MODULES ${CMAKE_CURRENT_SOURCE_DIR}/bq27520)
list(APPEND ZEPHYR_EXTRA_MODULES ${CMAKE_CURRENT_SOURCE_DIR}/ubxlib)
#list(APPEND ZEPHYR_EXTRA_MODULES $ENV{UBXLIB_BASE})
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(c210_SensorAggregation)
target_include_directories(app PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src/ublox_modules)
target_include_directories(app PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src/ublox_modules/cell)
target_include_directories(app PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src/ublox_modules/wifi)
target_include_directories(app PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src/ublox_modules/position)
target_include_directories(app PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src/ublox_modules/ble)
target_include_directories(app PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src/ublox_modules/ble/mobile_app_protocol)
target_include_directories(app PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src/ublox_modules/nfc)
target_include_directories(app PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src/sensors)
target_include_directories(app PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src/data_handle)
target_include_directories(app PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src/buttons_leds)
target_include_directories(app PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src/system)
target_include_directories(app PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src/shell_cmd)
target_include_directories(app PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src)
FILE(GLOB app_sources src/*.c)
FILE(GLOB head_sources src/*.h)
FILE(GLOB sensor_sources src/sensors/*.c)
FILE(GLOB ublox_modules_sources src/ublox_modules/*.c)
FILE(GLOB ublox_modules_cell_sources src/ublox_modules/cell/*.c)
FILE(GLOB ublox_modules_wifi_sources src/ublox_modules/wifi/*.c)
FILE(GLOB ublox_modules_position_sources src/ublox_modules/position/*.c)
FILE(GLOB ublox_modules_ble_sources src/ublox_modules/ble/*.c)
FILE(GLOB ublox_modules_mobile_app_protocol_sources src/ublox_modules/ble/mobile_app_protocol/*.c)
FILE(GLOB ublox_modules_nfc_sources src/ublox_modules/nfc/*.c)
FILE(GLOB data_handle_sources src/data_handle/*.c)
FILE(GLOB buttons_leds_sources src/buttons_leds/*.c)
FILE(GLOB system_sources src/system/*.c)
FILE(GLOB shell_cmd_sources src/shell_cmd/*.c)
target_sources(app PRIVATE ${app_sources})
target_sources(app PRIVATE ${head_sources})
target_sources(app PRIVATE ${sensor_sources})
target_sources(app PRIVATE ${ublox_modules_sources})
target_sources(app PRIVATE ${ublox_modules_cell_sources})
target_sources(app PRIVATE ${ublox_modules_wifi_sources})
target_sources(app PRIVATE ${ublox_modules_position_sources})
target_sources(app PRIVATE ${ublox_modules_ble_sources})
target_sources(app PRIVATE ${ublox_modules_mobile_app_protocol_sources})
target_sources(app PRIVATE ${ublox_modules_nfc_sources})
target_sources(app PRIVATE ${data_handle_sources})
target_sources(app PRIVATE ${buttons_leds_sources})
target_sources(app PRIVATE ${system_sources})
target_sources(app PRIVATE ${shell_cmd_sources})