summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2022-11-07 16:38:58 +1100
committerjacqueline <me@jacqueline.id.au>2022-11-07 16:38:58 +1100
commit6584060296042d8af440b21024ee7996e5034ec1 (patch)
treec4bd79361894a669a1f2f2778f5dff01416f779a /CMakeLists.txt
parentc29c218b85a4fe7cff037ead66ef45966c1c6542 (diff)
downloadtangara-fw-6584060296042d8af440b21024ee7996e5034ec1.tar.gz
Add a unit test app + example tests
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt34
1 files changed, 2 insertions, 32 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index eaf575af..a3c93d09 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,34 +1,4 @@
-# For more information about build system see
-# https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html
-cmake_minimum_required(VERSION 3.8)
-set(CMAKE_CXX_STANDARD 17)
-set(CMAKE_CXX_STANDARD_REQUIRED ON)
+cmake_minimum_required(VERSION 3.16)
+include(common.cmake)
-# ESP-ADF clobbers EXTRA_COMPONENT_DIRS, so include it first.
-include($ENV{ADF_PATH}/CMakeLists.txt)
-
-# Build only the subset of components that we actually depend on.
-set(COMPONENTS "")
-
-# External dependencies
-list(APPEND EXTRA_COMPONENT_DIRS "lib/result")
-list(APPEND EXTRA_COMPONENT_DIRS "lib/lvgl")
-
-# Project components
-list(APPEND EXTRA_COMPONENT_DIRS "src")
-
-# Additional warnings used when compiling our components.
-# Unable to be used due to issues in ESP-IDF includes are: -Wpedantic
-# -Wuseless-cast -Wconversion -Wold-style-cast -Wsign-conversion -Wcast-align
-set(EXTRA_WARNINGS "-Wshadow" "-Wnon-virtual-dtor" "-Wunused"
- "-Woverloaded-virtual" "-Wmisleading-indentation" "-Wduplicated-cond"
- "-Wduplicated-branches" "-Wlogical-op" "-Wnull-dereference"
- "-Wdouble-promotion" "-Wformat=2" "-Wimplicit-fallthrough")
-
-include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(gay-ipod-fw)
-
-# Extra build flags that should apply to the entire build. This should mostly
-# just be used to setting flags that our external dependencies requires.
-# Otherwise, prefer adding per-component build flags to keep things neat.
-idf_build_set_property(COMPILE_OPTIONS "-DRESULT_DISABLE_EXCEPTIONS -DLV_CONF_INCLUDE_SIMPLE" APPEND)