shithub: heymac-node

ref: ad1df2d2a01bd064e643287ff305673dfede3ce3
dir: /CMakeLists.txt/

View raw version
# QPC Zephyr application template and example
# SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-QL-commercial

cmake_minimum_required(VERSION 3.20.0)

# location of the QPC Zephyr module
# NOTE: might need to adjust for your project
#
set(QPC ${CMAKE_CURRENT_SOURCE_DIR}/qpc)

# Zephyr stuff
set(ZEPHYR_EXTRA_MODULES ${QPC})
set(BOARD_ROOT ${CMAKE_CURRENT_SOURCE_DIR})
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})

# project name
# NOTE: Adjust for your project
#
project(qpc-zephyr-app)

# sources for your project
# NOTE: Adjust for your project
#
target_sources(app PRIVATE
 src/main.c
 src/bsp.c
 src/philo.c
 src/table.c
 src/sx127x.c
)

# option to turn QSPY software tracing ON or OFF
# NOTE: Typically specified on command-line, e.g.:
# west build -b <board> -- -DQSPY=ON
#
option(QSPY "QSPY software tracing" OFF)