-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
56 lines (49 loc) · 2.01 KB
/
CMakeLists.txt
File metadata and controls
56 lines (49 loc) · 2.01 KB
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
#
# Copyright (c) 2024 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(cloud_module_test)
test_runner_generate(src/cloud_module_test.c)
target_sources(app
PRIVATE
src/cloud_module_test.c
../../../app/src/modules/cloud/cloud.c
)
zephyr_include_directories(${ZEPHYR_BASE}/include/zephyr/)
zephyr_include_directories(${ZEPHYR_BASE}/include/zephyr/net)
zephyr_include_directories(${ZEPHYR_BASE}/subsys/testsuite/include)
zephyr_include_directories(../../../app/src/modules/cloud)
zephyr_include_directories(../../../app/src/common)
zephyr_include_directories(../../../app/src/modules/power)
zephyr_include_directories(../../../app/src/modules/network)
zephyr_include_directories(../../../app/src/modules/environmental)
zephyr_include_directories(${NRF_DIR}/subsys/net/lib/nrf_cloud/include)
zephyr_include_directories(${NRF_DIR}/subsys/net/lib/nrf_cloud/coap/include)
zephyr_include_directories(${NRF_DIR}/../modules/lib/cjson)
target_link_options(app PRIVATE --whole-archive)
# Options that cannot be passed through Kconfig fragments
target_compile_definitions(app PRIVATE
-DCONFIG_APP_CLOUD_PAYLOAD_BUFFER_MAX_SIZE=256
-DCONFIG_APP_CLOUD_SHADOW_RESPONSE_BUFFER_MAX_SIZE=512
-DCONFIG_APP_CLOUD_LOG_LEVEL=0
-DCONFIG_APP_CLOUD_THREAD_STACK_SIZE=2048
-DCONFIG_APP_CLOUD_MESSAGE_QUEUE_SIZE=5
-DCONFIG_APP_CLOUD_MSG_PROCESSING_TIMEOUT_SECONDS=1
-DCONFIG_APP_CLOUD_WATCHDOG_TIMEOUT_SECONDS=2
-DCONFIG_APP_CLOUD_BACKOFF_TYPE_LINEAR=1
-DCONFIG_APP_CLOUD_BACKOFF_INITIAL_SECONDS=6
-DCONFIG_APP_CLOUD_BACKOFF_LINEAR_INCREMENT_SECONDS=6
-DCONFIG_APP_CLOUD_BACKOFF_MAX_SECONDS=36
-DCONFIG_LTE_LC_CONN_EVAL_MODULE=1
-DCONFIG_LTE_LC_EDRX_MODULE=1
-DCONFIG_LTE_LC_PSM_MODULE=1
-DCONFIG_COAP_CONTENT_FORMAT_APP_JSON=50
-DCONFIG_NRF_CLOUD_COAP=1
-DCONFIG_COAP_CLIENT_MESSAGE_HEADER_SIZE=1024
-DCONFIG_COAP_CLIENT_MESSAGE_SIZE=1024
-DCONFIG_COAP_CLIENT_MAX_REQUESTS=5
-DCONFIG_COAP_CLIENT_BLOCK_SIZE=1024
)