32 lines
811 B
CMake
32 lines
811 B
CMake
#
|
|
# Copyright (c) 2018 Nordic Semiconductor
|
|
#
|
|
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
|
|
#
|
|
cmake_minimum_required(VERSION 3.20.0)
|
|
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
project(GML670_V2)
|
|
|
|
if(SYSBUILD)
|
|
get_filename_component(SYSBUILD_TOP_BINARY_DIR "${CMAKE_BINARY_DIR}" DIRECTORY)
|
|
add_custom_target(sync_compile_commands ALL
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
|
${CMAKE_BINARY_DIR}/compile_commands.json
|
|
${SYSBUILD_TOP_BINARY_DIR}/compile_commands.json
|
|
COMMENT "Sync ${PROJECT_NAME} compile_commands.json to sysbuild top-level build/"
|
|
VERBATIM
|
|
)
|
|
endif()
|
|
|
|
# NORDIC SDK APP START
|
|
file(GLOB_RECURSE app_sources src/*.c)
|
|
target_sources(app PRIVATE
|
|
${app_sources}
|
|
)
|
|
|
|
target_include_directories(app PRIVATE
|
|
inc
|
|
)
|
|
# NORDIC SDK APP END
|