forked from Inteform/esp32-lora-library
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
17 lines (12 loc) · 1.89 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
cmake_minimum_required(VERSION 3.2)
set(ENV{IDF_PATH} "$ENV{HOME}/esp/esp-idf/")
set(ENV{PATH} "/usr/local/opt/sqlite/bin:/usr/local/opt/openssl/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/opt/go/libexec/bin:$ENV{HOME}/esp/xtensa-esp32-elf/bin:$ENV{IDF_PATH}/tools")
SET(CMAKE_C_COMPILER "$ENV{HOME}/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc")
SET(CMAKE_CXX_COMPILER "$ENV{HOME}/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++")
SET(CMAKE_CXX_FLAGS_DISTRIBUTION "-fno-rtti -fno-exceptions -std=gnu++11 -Wno-error=deprecated-declarations -Wno-error=unused-function -Wno-unused-parameter -Wno-sign-compare -fstack-protector -Os -g3 -nostdlib -Wpointer-arith -Wno-error=unused-but-set-variable -Wno-error=unused-variable -mlongcalls -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -DARDUINO=10805 -DARDUINO_ARCH_ESP32 -DARDUINO_VARIANT="esp32thing" -DARDUINO_BOARD="SparkFun\\ ESP32\\ Thing" -DESP32 -DESP_PLATFORM -DF_CPU=240000000L -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h" -DPLATFORMIO=30502 -DARDUINO_ESP32_THING")
SET(CMAKE_C_FLAGS_DISTRIBUTION "-Wno-old-style-declaration -std=gnu99 -Wno-error=deprecated-declarations -Wno-error=unused-function -Wno-unused-parameter -Wno-sign-compare -fstack-protector -Os -g3 -nostdlib -Wpointer-arith -Wno-error=unused-but-set-variable -Wno-error=unused-variable -mlongcalls -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -DARDUINO=10805 -DARDUINO_ARCH_ESP32 -DARDUINO_VARIANT="esp32thing" -DARDUINO_BOARD="SparkFun\\ ESP32\\ Thing" -DESP32 -DESP_PLATFORM -DF_CPU=240000000L -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h" -DPLATFORMIO=30502 -DARDUINO_ESP32_THING")
SET(CMAKE_CXX_STANDARD 11)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(lora-esp32
VERSION 1.0.0
LANGUAGES C CXX)