Working build

This commit is contained in:
Nanosonde 2020-10-19 18:15:05 +02:00
parent ac4470f0d7
commit ae61d777a4
2 changed files with 18 additions and 2 deletions

View File

@ -2,9 +2,15 @@
## KNX for CC1310
##
project(knx-cc1310 C CXX ASM)
cmake_minimum_required(VERSION 3.12)
if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
set(CMAKE_TOOLCHAIN_FILE "${CMAKE_CURRENT_SOURCE_DIR}/cmake/toolchain-arm-none-eabi.cmake")
endif()
project(knx-cc1310 C CXX ASM)
# Generate a "compile_commands.json" file containing the exact compiler calls for all translation units of the project in machine-readable form.
# Useful for C/CPP extension of VS code
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

View File

@ -1 +1,11 @@
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain-arm-none-eabi.cmake ..
#!/bin/bash
[ -d build ] || mkdir build
cd build
#create Makefile
cmake -DCMAKE_BUILD_TYPE=Debug ..
#Run make
cmake --build . -j4