-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
38 lines (32 loc) · 1.49 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
zephyr_library()
if(CONFIG_QPCPP)
set(QPCPP_DIR qpcpp)
zephyr_include_directories(${QPCPP_DIR}/include
${QPCPP_DIR}/ports/zephyr
)
target_include_directories(app PUBLIC ${QPCPP_DIR}/include
${QPCPP_DIR}/ports/zephyr)
zephyr_library_sources( ${QPCPP_DIR}/src/qf/qep_hsm.cpp
${QPCPP_DIR}/src/qf/qep_msm.cpp
${QPCPP_DIR}/src/qf/qf_act.cpp
${QPCPP_DIR}/src/qf/qf_qact.cpp
${QPCPP_DIR}/src/qf/qf_defer.cpp
${QPCPP_DIR}/src/qf/qf_dyn.cpp
${QPCPP_DIR}/src/qf/qf_mem.cpp
${QPCPP_DIR}/src/qf/qf_ps.cpp
${QPCPP_DIR}/src/qf/qf_qact.cpp
${QPCPP_DIR}/src/qf/qf_qeq.cpp
${QPCPP_DIR}/src/qf/qf_qmact.cpp
${QPCPP_DIR}/src/qf/qf_time.cpp
${QPCPP_DIR}/ports/zephyr/qf_port.cpp)
if(CONFIG_QSPY)
target_compile_definitions(app PUBLIC Q_SPY)
zephyr_library_compile_definitions(Q_SPY)
zephyr_library_sources(${QPCPP_DIR}/src/qs/qs.cpp
${QPCPP_DIR}/src/qs/qs_rx.cpp
${QPCPP_DIR}/src/qs/qs_fp.cpp
${QPCPP_DIR}/src/qs/qutest.cpp
${QPCPP_DIR}/src/qs/qs_64bit.cpp
${QPCPP_DIR}/include/qstamp.cpp)
endif() #CONFIG_QSPY
endif() #CONFIG_QPCPP