-
-
Notifications
You must be signed in to change notification settings - Fork 68
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
47 lines (44 loc) · 941 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
47 lines (44 loc) · 941 Bytes
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
SET (RC522_REQUIRES
esp_event
esp_driver_gpio
esp_driver_i2c
)
if(${IDF_TARGET} STREQUAL "linux") # tests
list(APPEND RC522_REQUIRES driver)
else()
list(APPEND RC522_REQUIRES esp_driver_spi)
endif()
idf_component_register(
INCLUDE_DIRS
include
PRIV_INCLUDE_DIRS
internal
SRCS
src/rc522.c
src/rc522_helpers.c
src/rc522_pcd.c
src/rc522_picc.c
src/picc/rc522_mifare.c
src/picc/rc522_nxp.c
src/rc522_driver.c
src/driver/rc522_spi.c
src/driver/rc522_i2c.c
REQUIRES
${RC522_REQUIRES}
)
target_compile_options(${COMPONENT_LIB} PRIVATE
-Werror # Warning as error
#-pedantic
-Wextra
-Wall
-Wshadow
-Wcast-qual
-Wswitch-default
#-Wswitch-enum
#-Wconversion
-Wunreachable-code
-Wuninitialized
-Winit-self
-Wpointer-arith
-Werror-implicit-function-declaration
)