-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
42 lines (33 loc) · 1005 Bytes
/
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
cmake_minimum_required( VERSION 3.12 )
project( lwm2m_client C)
set(CMAKE_C_STANDARD 11)
include_directories( libulwm2m )
set( LIBULWM2M_SOURCE
libulwm2m/coap.c
libulwm2m/utils.c
libulwm2m/lwm2m.c
libulwm2m/tlv.c
libulwm2m/object_security.c
libulwm2m/object_server.c
libulwm2m/object_device.c
)
set( LWM2M_CLIENT_DEMO
example/object_3300.c
example/object_3303.c
example/object_3341.c
example/main.c
example/udp.c
)
#set(CMAKE_C_FLAGS "-lasan -O0 -g -fno-omit-frame-pointer -fsanitize=address ${CMAKE_C_FLAGS}")
add_executable( lwm2m_client ${LWM2M_CLIENT_DEMO} ${LIBULWM2M_SOURCE} )
target_compile_definitions( lwm2m_client PRIVATE
COAP_DBG_PRINT_PACKET
)
target_compile_options( lwm2m_client PRIVATE
-Wall
-Wextra
-pedantic
-Wimplicit-fallthrough=3
-Wno-missing-field-initializers
-Wno-misleading-indentation
)