mirror of
https://github.com/QuantumLeaps/qpcpp.git
synced 2025-01-14 05:42:57 +08:00
4cdb28e10d
improved Zephyr port and examples
53 lines
1.1 KiB
CMake
53 lines
1.1 KiB
CMake
# QPCPP Zephyr module
|
|
# SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-QL-commercial
|
|
|
|
zephyr_library()
|
|
|
|
if(CONFIG_QPCPP)
|
|
|
|
set(QPCPP_DIR ..)
|
|
|
|
zephyr_include_directories(
|
|
${QPCPP_DIR}/include
|
|
${QPCPP_DIR}/zephyr
|
|
)
|
|
|
|
target_include_directories(app PUBLIC
|
|
${QPCPP_DIR}/include
|
|
${QPCPP_DIR}/zephyr
|
|
)
|
|
|
|
zephyr_library_sources(
|
|
${QPCPP_DIR}/src/qf/qep_hsm.cpp
|
|
${QPCPP_DIR}/src/qf/qep_msm.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}/zephyr/qf_port.cpp
|
|
)
|
|
|
|
# QSPY option...
|
|
if(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() # QSPY
|
|
|
|
endif() # CONFIG_QPCPP
|