-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
69 lines (61 loc) · 1.53 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
67
68
set(srcs
"application.cpp"
"p44obj.cpp"
"logger.cpp"
"utils.cpp"
"extutils.cpp"
"timeutils.cpp"
"colorutils.cpp"
"error.cpp"
"mainloop.cpp"
"fdcomm.cpp"
"socketcomm.cpp"
"valueanimator.cpp"
"analogio.cpp"
"digitalio.cpp"
"dcmotor.cpp"
"iopin.cpp"
"gpio.cpp"
"pwm.cpp")
set(incl
"." "../../main" "thirdparty")
if(CONFIG_P44UTILS_ENABLE_P44SCRIPT)
list(APPEND srcs
"p44script.cpp")
endif()
if(CONFIG_P44UTILS_ENABLE_LEDCHAIN)
list(APPEND srcs
"ledchaincomm.cpp"
"thirdparty/esp32_ws281x/esp32_ws281x.c")
list(APPEND incl
"../../components/p44lrgraphics"
"thirdparty/esp32_ws281x")
endif()
if(CONFIG_P44UTILS_ENABLE_JSON)
list(APPEND srcs
"jsonobject.cpp"
"jsonobject.cpp"
"jsoncomm.cpp"
"jsonrpccomm.cpp"
"thirdparty/json-c/arraylist.c"
"thirdparty/json-c/debug.c"
"thirdparty/json-c/json_c_version.c"
"thirdparty/json-c/json_object.c"
"thirdparty/json-c/json_object_iterator.c"
"thirdparty/json-c/json_tokener.c"
"thirdparty/json-c/json_util.c"
"thirdparty/json-c/linkhash.c"
"thirdparty/json-c/printbuf.c"
"thirdparty/json-c/random_seed.c")
list(APPEND incl
"thirdparty/json-c")
endif()
idf_component_register(
SRCS "${srcs}"
INCLUDE_DIRS "${incl}")
target_compile_options(${COMPONENT_LIB} PRIVATE
-Wno-reorder
-Wno-missing-field-initializers
-frtti
-isystem /Volumes/CaseSens/openwrt/build_dir/target-mipsel_24kc_musl/boost_1_71_0)
# %%%ugly hack above ^^^^^^ for now%%% just take a boost checkout we already have