mirror of
https://github.com/thelsing/knx.git
synced 2025-08-22 13:46:21 +02:00
Working build
This commit is contained in:
parent
ac4470f0d7
commit
ae61d777a4
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user